SoapExtensionAttribute.ExtensionType 属性
定义
public:
abstract property Type ^ ExtensionType { Type ^ get(); };
public abstract Type ExtensionType { get; }
member this.ExtensionType : Type
Public MustOverride ReadOnly Property ExtensionType As Type
属性值
SOAP 扩展的 Type。The Type of the SOAP extension.
示例
下面的代码示例是属性的典型实现 ExtensionType 。The following code example is a typical implementation of the ExtensionType property.
// Return the type of TraceExtension.
property Type^ ExtensionType
{
Type^ get()
{
return typeid<TraceExtension^>;
}
}
// Return the type of TraceExtension.
public override Type ExtensionType
{
get
{
return typeof(TraceExtension);
}
}
' Return the type of TraceExtension.
Public Overrides ReadOnly Property ExtensionType() As Type
Get
Return GetType(TraceExtension)
End Get
End Property
注解
派生类必须重写 ExtensionType 属性以返回 SOAP 扩展的类型。Derived classes must override the ExtensionType property to return the type of the SOAP extension.