Breyta

Deila með


ServiceDescriptionFormatExtensionCollection.IsHandled(Object) Method

Definition

Returns a value indicating whether the specified object is used by the import process when the extensibility element is imported into the XML Web service.

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

Parameters

item
Object

An object, either of type XmlElement or ServiceDescriptionFormatExtension to check for use by the import process.

Returns

true if the item parameter is used; otherwise, false.

Examples

// 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())

Remarks

This method checks whether the item parameter is an XmlElement or a ServiceDescriptionFormatExtension (or a derived class) before determining whether it is supported by the XML Web service.

Applies to