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.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

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

Property Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

ServiceDefinition Class

Microsoft.TeamFoundation.Framework.Server Namespace