ServiceDefinition.IsSingleton 属性

注意:此 API 现在已过时。

如果 [true],这与此类型的唯一服务定义。如果此服务定义将注册,因此这是 [true],则使用此服务类型的服务定义不能已注册。如果此定义更新,以便它是一个定义,它必须是注册的唯一定义。

一旦将定义签入,与特定服务类型的其他服务定义可能未注册。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
<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; }

属性值

类型:System.Boolean
返回 Boolean

.NET Framework 安全性

请参见

参考

ServiceDefinition 类

Microsoft.TeamFoundation.Framework.Server 命名空间