ServiceDescriptionFormatExtensionCollection.IsHandled Method
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.
[Visual Basic] Public Function IsHandled( _ ByVal item As Object _ ) As Boolean [C#] public bool IsHandled( object item ); [C++] public: bool IsHandled( Object* item ); [JScript] public function IsHandled( item : Object ) : Boolean;
Parameters
- item
- An object, either of type XmlElement or ServiceDescriptionFormatExtension to check for use by the import process.
Return Value
true if the item parameter is used; otherwise false.
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.
Example
[Visual Basic] ' Check 'IsHandled' status for 'myFormatExtensionObject' object in collection. Console.WriteLine("'IsHandled' status for {0} object is {1}.", _ myFormatExtensionObject.ToString(), _ myCollection.IsHandled(myFormatExtensionObject).ToString()) [C#] // Check 'IsHandled' status for 'myFormatExtensionObject' object in collection. Console.WriteLine("'IsHandled' status for {0} object is {1}.", myFormatExtensionObject.ToString(), myCollection.IsHandled(myFormatExtensionObject).ToString()); [C++] // Check 'IsHandled' status for 'myFormatExtensionObject' object in collection. Console::WriteLine(S"'IsHandled' status for {0} object is {1}.", myFormatExtensionObject, __box(myCollection->IsHandled(myFormatExtensionObject)));
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ServiceDescriptionFormatExtensionCollection Class | ServiceDescriptionFormatExtensionCollection Members | System.Web.Services.Description Namespace