Skip to content
Docs Try Aspire

DevTunnelPortOptions Properties

Class Properties 4 members
Options for a dev tunnel port.
AllowAnonymous Section titled AllowAnonymous nullable bool?
Whether to allow anonymous access to this port. If null, defaults to the parent tunnel's setting. Defaults to null.
public bool? AllowAnonymous { get; set; }
Description Section titled Description nullable string?
A description for this port within the dev tunnel.
public string? Description { get; set; }
Labels Section titled Labels nullable List<string>
Optional labels to attach to this tunnel port.
public List<string>? Labels { get; set; }
Protocol Section titled Protocol nullable string?
Protocol type to expose. "http", "https", or "auto". Defaults to match scheme of exposed endpoint.
public string? Protocol { get; set; }