ServiceDescriptionFormatExtensionCollection.Find Methode

Definitie

Hiermee wordt gezocht naar het ServiceDescriptionFormatExtensionCollection eerste lid van de verzameling die is opgegeven door de parameter die is doorgegeven.

Overloads

Name Description
Find(Type)

Zoekt het ServiceDescriptionFormatExtensionCollection en retourneert het eerste element van de opgegeven afgeleide Type.

Find(String, String)

ServiceDescriptionFormatExtensionCollection Hiermee wordt gezocht naar een lid met de opgegeven naam- en naamruimte-URI.

Find(Type)

Zoekt het ServiceDescriptionFormatExtensionCollection en retourneert het eerste element van de opgegeven afgeleide Type.

public:
 System::Object ^ Find(Type ^ type);
public object Find(Type type);
member this.Find : Type -> obj
Public Function Find (type As Type) As Object

Parameters

type
Type

Een Type waarnaar u de verzameling wilt doorzoeken.

Retouren

Als de zoekopdracht is geslaagd, wordt een object van de opgegeven Type; anders . null

Opmerkingen

Deze methode doorzoekt de verzameling in indexvolgorde en retourneert alleen het overeenkomende element met de laagste index.

Van toepassing op

Find(String, String)

ServiceDescriptionFormatExtensionCollection Hiermee wordt gezocht naar een lid met de opgegeven naam- en naamruimte-URI.

public:
 System::Xml::XmlElement ^ Find(System::String ^ name, System::String ^ ns);
public System.Xml.XmlElement Find(string name, string ns);
member this.Find : string * string -> System.Xml.XmlElement
Public Function Find (name As String, ns As String) As XmlElement

Parameters

name
String

De naam van de XmlElement te vinden naam.

ns
String

De URI van de XmlElement TE vinden XML-naamruimte.

Retouren

Als de zoekopdracht is geslaagd, een XmlElement; anders. null

Voorbeelden

// Check element of type 'SoapAddressBinding' in collection.
Object^ myObj = myCollection->Find( mySoapAddressBinding->GetType() );
if ( myObj == nullptr )
      Console::WriteLine( "Element of type ' {0}' not found in collection.", mySoapAddressBinding->GetType() );
else
      Console::WriteLine( "Element of type ' {0}' found in collection.", mySoapAddressBinding->GetType() );
// Check element of type 'SoapAddressBinding' in collection.
Object   myObj = myCollection.Find(mySoapAddressBinding.GetType());
if(myObj == null)
{
   Console.WriteLine("Element of type '{0}' not found in collection.",
      mySoapAddressBinding.GetType().ToString());
}
else
{
   Console.WriteLine("Element of type '{0}' found in collection.",
      mySoapAddressBinding.GetType().ToString());
}
' Check element of type 'SoapAddressBinding' in collection.
Dim myObj As Object = myCollection.Find(mySoapAddressBinding.GetType())
If myObj Is Nothing Then
   Console.WriteLine("Element of type '{0}' not found in collection.", _
        mySoapAddressBinding.GetType().ToString())
Else
   Console.WriteLine("Element of type '{0}' found in collection.", _
        mySoapAddressBinding.GetType().ToString())
End If

Opmerkingen

Deze methode doorzoekt de verzameling in indexvolgorde en retourneert de eerste XmlElement die voldoet aan de criteria van de twee parameters.

Van toepassing op