ServiceDescriptionFormatExtensionCollection.Find Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
ServiceDescriptionFormatExtensionCollection öğesini arar ve geçirilen parametre tarafından belirtilen koleksiyonun ilk üyesini döndürür.
Aşırı Yüklemeler
Find(Type) |
ServiceDescriptionFormatExtensionCollection öğesini arar ve belirtilen türetilmiş Typeöğesinin ilk öğesini döndürür. |
Find(String, String) |
ServiceDescriptionFormatExtensionCollection belirtilen ad ve ad alanı URI'sine sahip bir üyeyi arar. |
Find(Type)
- Kaynak:
- ServiceDescription.cs
- Kaynak:
- ServiceDescription.cs
- Kaynak:
- ServiceDescription.cs
ServiceDescriptionFormatExtensionCollection öğesini arar ve belirtilen türetilmiş Typeöğesinin ilk öğesini döndürür.
public:
System::Object ^ Find(Type ^ type);
public object Find (Type type);
member this.Find : Type -> obj
Public Function Find (type As Type) As Object
Parametreler
Döndürülenler
Arama başarılı olursa, belirtilen Typenesnesi ; aksi takdirde , null
.
Açıklamalar
Bu yöntem, koleksiyonu dizin sırasına göre arar ve yalnızca en düşük numaralı dizine sahip eşleşen öğeyi döndürür.
Şunlara uygulanır
Find(String, String)
- Kaynak:
- ServiceDescription.cs
- Kaynak:
- ServiceDescription.cs
- Kaynak:
- ServiceDescription.cs
ServiceDescriptionFormatExtensionCollection belirtilen ad ve ad alanı URI'sine sahip bir üyeyi arar.
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
Parametreler
- name
- String
Bulunacak öğesinin XmlElement adı.
- ns
- String
Bulunacak öğesinin XmlElement XML ad alanı URI'si.
Döndürülenler
Arama başarılı olursa, bir XmlElement; değilse, null
.
Örnekler
// 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
Açıklamalar
Bu yöntem, koleksiyonu dizin sırasına göre arar ve iki parametrenin ölçütlerini karşılayan ilki XmlElement döndürür.