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.

C#
public bool IsHandled(object item);

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

C#
// 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

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)