Modifica

Condividi tramite


ServiceDescriptionFormatExtensionCollection.IsRequired(Object) Method

Definition

Returns a value indicating whether the specified object is necessary for the operation of the XML Web service.

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

Parameters

item
Object

An object, either of type XmlElement or ServiceDescriptionFormatExtension, to check whether it is necessary.

Returns

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

Examples

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

Applies to