ServiceDescriptionFormatExtensionCollection.IsHandled(Object) 方法

定义

返回一个值,该值指示当扩展性元素导入 XML Web services 时,导入进程是否使用指定的对象。

public:
 bool IsHandled(System::Object ^ item);
public bool IsHandled (object item);
member this.IsHandled : obj -> bool
Public Function IsHandled (item As Object) As Boolean

参数

item
Object

一个类型为 XmlElementServiceDescriptionFormatExtension 的对象,用于检查指定对象是否由导入进程使用。

返回

Boolean

如果使用 item 参数,则为 true;否则,为 false

示例

// Check 'IsHandled' status for 'myFormatExtensionObject' object in collection.
Console::WriteLine( "'IsHandled' status for {0} object is {1}.", myFormatExtensionObject, myCollection->IsHandled( myFormatExtensionObject ) );
// Check 'IsHandled' status for 'myFormatExtensionObject' object in collection.
Console.WriteLine("'IsHandled' status for {0} object is {1}.",
         myFormatExtensionObject.ToString(),
         myCollection.IsHandled(myFormatExtensionObject).ToString());
' Check 'IsHandled' status for 'myFormatExtensionObject' object in collection.
Console.WriteLine("'IsHandled' status for {0} object is {1}.", _
        myFormatExtensionObject.ToString(), _
        myCollection.IsHandled(myFormatExtensionObject).ToString())

注解

此方法在确定 XML Web 服务是否 item 支持参数之前检查参数是 (XmlElement ServiceDescriptionFormatExtension 还是派生类) 。

适用于