ConfigurationElementCollection.BaseGet Yöntem

Tanım

Belirtilen dizin konumunda alır ConfigurationElement .

Aşırı Yüklemeler

Name Description
BaseGet(Int32)

Belirtilen dizin konumunda yapılandırma öğesini alır.

BaseGet(Object)

Belirtilen anahtarla yapılandırma öğesini döndürür.

BaseGet(Int32)

Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs

Belirtilen dizin konumunda yapılandırma öğesini alır.

protected public:
 System::Configuration::ConfigurationElement ^ BaseGet(int index);
protected:
 System::Configuration::ConfigurationElement ^ BaseGet(int index);
protected internal System.Configuration.ConfigurationElement BaseGet(int index);
protected System.Configuration.ConfigurationElement BaseGet(int index);
member this.BaseGet : int -> System.Configuration.ConfigurationElement
Protected Friend Function BaseGet (index As Integer) As ConfigurationElement
Protected Function BaseGet (index As Integer) As ConfigurationElement

Parametreler

index
Int32

Döndürülecek dizinin konumu ConfigurationElement .

Döndürülenler

ConfigurationElement Belirtilen dizinde.

Özel durumlar

index değerinden 0küçüktür.

-veya-

Belirtilen ConfigurationElementkonumunda yokindex.

Örnekler

Aşağıdaki kod örneğinde yönteminin nasıl çağrılacakları gösterilmektedir BaseGet .

public UrlConfigElement this[int index]
{
    get
    {
        return (UrlConfigElement)BaseGet(index);
    }
    set
    {
        if (BaseGet(index) != null)
        {
            BaseRemoveAt(index);
        }
        BaseAdd(index, value);
    }
}
Default Public Shadows Property Item(ByVal index As Integer) As UrlConfigElement
    Get
        Return CType(BaseGet(index), UrlConfigElement)
    End Get
    Set(ByVal value As UrlConfigElement)
        If BaseGet(index) IsNot Nothing Then
            BaseRemoveAt(index)
        End If
        BaseAdd(value)
    End Set
End Property

Şunlara uygulanır

BaseGet(Object)

Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs
Kaynak:
ConfigurationElementCollection.cs

Belirtilen anahtarla yapılandırma öğesini döndürür.

protected public:
 System::Configuration::ConfigurationElement ^ BaseGet(System::Object ^ key);
protected:
 System::Configuration::ConfigurationElement ^ BaseGet(System::Object ^ key);
protected internal System.Configuration.ConfigurationElement BaseGet(object key);
protected System.Configuration.ConfigurationElement BaseGet(object key);
member this.BaseGet : obj -> System.Configuration.ConfigurationElement
Protected Friend Function BaseGet (key As Object) As ConfigurationElement
Protected Function BaseGet (key As Object) As ConfigurationElement

Parametreler

key
Object

Döndürülecek öğenin anahtarı.

Döndürülenler

ConfigurationElement belirtilen anahtara sahip; aksi takdirde , null.

Örnekler

Aşağıdaki kod örneğinde yönteminin nasıl çağrılacakları gösterilmektedir BaseGet .

new public UrlConfigElement this[string Name]
{
    get
    {
        return (UrlConfigElement)BaseGet(Name);
    }
}
Default Public Shadows ReadOnly Property Item(ByVal Name As String) As UrlConfigElement
    Get
        Return CType(BaseGet(Name), UrlConfigElement)
    End Get
End Property

Açıklamalar

yöntemi, BaseGet koleksiyonda belirtilen anahtara sahip bir nesne yoksa null döndürürConfigurationElement.

Şunlara uygulanır