ServiceDescriptionFormatExtensionCollection.IsHandled(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈