ServiceDescriptionFormatExtensionCollection.IsRequired(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 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.