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 安全性

请参见

参考

RequiresServiceAttribute 类

Microsoft.Windows.Design 命名空间

RequiresContextItemAttribute

UsesItemPolicyAttribute

PrimarySelectionPolicy

FeatureProvider

其他资源

功能提供程序和功能连接器

了解 WPF 设计器扩展性