Share via


ServiceDefinition.IsSingleton Property

Note: This API is now obsolete.

If true, this is the only service definition with this type. If this service definition is about to be registered and this is true, no service definitions with this service type can already be registered. If this definition is being updated so that it is a singleton definition, it must be the only definition registered. Once a singleton definition is registered, no other service definitions with the given service type can be registered.

Namespace:  Microsoft.TeamFoundation.Server.Core.Location
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<ClientPropertyAttribute(ClientVisibility.Private)> _
<ObsoleteAttribute("The IsSingleton property is no longer used. It will always return true for backwards compatibility purposes")> _
Public ReadOnly Property IsSingleton As Boolean
[ClientPropertyAttribute(ClientVisibility.Private)]
[ObsoleteAttribute("The IsSingleton property is no longer used. It will always return true for backwards compatibility purposes")]
public bool IsSingleton { get; }
[ClientPropertyAttribute(ClientVisibility::Private)]
[ObsoleteAttribute(L"The IsSingleton property is no longer used. It will always return true for backwards compatibility purposes")]
public:
property bool IsSingleton {
    bool get ();
}
[<ClientPropertyAttribute(ClientVisibility.Private)>]
[<ObsoleteAttribute("The IsSingleton property is no longer used. It will always return true for backwards compatibility purposes")>]
member IsSingleton : bool with get
function get IsSingleton () : boolean

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ServiceDefinition Class

Microsoft.TeamFoundation.Server.Core.Location Namespace