Udostępnij za pośrednictwem


Właściwość ServiceDefinition.IsSingleton —

Uwaga: ten interfejs API jest już przestarzały.

Jeśli [true], to tylko definicji tego typu usługi.Definicja ta usługa ma zostać zarejestrowany, jeśli jest to [true], definicje usług nie z tego typu usługi mogą być już zarejestrowane.Niniejsza definicja jest aktualizowany tak, że jest to definicja singleton, musi być tylko definicji zarejestrowane.

Po zarejestrowaniu definicji singleton mogą być rejestrowane nie inne definicje usług z danego typu usług.

Przestrzeń nazw:  Microsoft.TeamFoundation.Framework.Server
Zestaw:  Microsoft.TeamFoundation.Framework.Server (w Microsoft.TeamFoundation.Framework.Server.dll)

Składnia

'Deklaracja
<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; }

Wartość właściwości

Typ: System.Boolean
Returns Boolean.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ServiceDefinition Klasa

Przestrzeń nazw Microsoft.TeamFoundation.Framework.Server