RequiresServiceAttribute.ServiceType 属性
获取类请求的服务类型。
命名空间: Microsoft.Windows.Design
程序集: Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)
语法
声明
Public ReadOnly Property ServiceType As Type
Get
public Type ServiceType { get; }
public:
property Type^ ServiceType {
Type^ get ();
}
member ServiceType : Type
function get ServiceType () : Type
属性值
类型:System.Type
一个 Type,指示类需要的服务类型。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。