SoapExtensionAttribute.ExtensionType 属性

定义

当在派生类中被重写时,获取 SOAP 扩展的 Type

public:
 abstract property Type ^ ExtensionType { Type ^ get(); };
public abstract Type ExtensionType { get; }
member this.ExtensionType : Type
Public MustOverride ReadOnly Property ExtensionType As Type

属性值

Type

SOAP 扩展的 Type

示例

下面的代码示例是属性的典型实现 ExtensionType

// 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 扩展的类型。

适用于