Share via


TeamProjectCollectionProperties.Authority Property

The accepted host name by which to access the team project collection when constructing a URL that is meant to target the collection. If the authority is null, then any URL that targets the TFS instance can be used to resolve the team project collection, by means of exclusive use of the VirtualDirectory property. Otherwise, both the Authority and the VirtualDirectory are used to resolve the team project collection. Example: Authority = contoso.tfs.net VirtualDirectory = ~/ProjectCollection. A URL such as the following will target this project collection: http://contoso.tfs.net/ProjectCollection/Services/v3.0/LocationService.asmx. Any other host name in the URL will not be able to resolve this project collection.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
<ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)> _
Public Property Authority As String
[ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)]
public string Authority { get; set; }
[ClientPropertyAttribute(ClientVisibility::Public, ClientVisibility::Public)]
public:
property String^ Authority {
    String^ get ();
    void set (String^ value);
}
[<ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)>]
member Authority : string with get, set
function get Authority () : String 
function set Authority (value : String)

Property Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

TeamProjectCollectionProperties Class

Microsoft.TeamFoundation.Framework.Server Namespace