Compartilhar via


ServiceDescriptionFormatExtensionCollection.IsRequired(Object) Método

Definição

Retorna um valor que indica se o objeto especificado é necessário para a operação do serviço Web XML.

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

Parâmetros

item
Object

Um objeto, do tipo XmlElement ou ServiceDescriptionFormatExtension, para verificar quanto à necessidade.

Retornos

Boolean

true se o parâmetro item for necessário; caso contrário, false.

Exemplos

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

Aplica-se a