SectionInformation.ProtectionProvider 속성

정의

연결된 구성 섹션의 보호되는 구성 공급자를 가져옵니다.

public:
 property System::Configuration::ProtectedConfigurationProvider ^ ProtectionProvider { System::Configuration::ProtectedConfigurationProvider ^ get(); };
public System.Configuration.ProtectedConfigurationProvider ProtectionProvider { get; }
member this.ProtectionProvider : System.Configuration.ProtectedConfigurationProvider
Public ReadOnly Property ProtectionProvider As ProtectedConfigurationProvider

속성 값

ConfigurationSection 개체에 대한 보호된 구성 공급자입니다.

예제

다음 예제에서는 개체의 ProtectSectionConfigurationSection 값을 가져오는 방법을 보여줍니다.

static public void GetProtectionProvider()
{
    SectionInformation sInfo =
        GetSectionInformation();

    ProtectedConfigurationProvider pp = 
        sInfo.ProtectionProvider;
    if (pp == null)
        Console.WriteLine("Protection provider is null");
    else
        Console.WriteLine("Protection provider: {0}", 
            pp.ToString());
}
Public Shared Sub GetProtectionProvider()

    Dim sInfo As SectionInformation = _
    GetSectionInformation()

    Dim pp _
    As ProtectedConfigurationProvider = _
    sInfo.ProtectionProvider
    If pp Is Nothing Then
        Console.WriteLine("Protection provider is null")
    Else
        Console.WriteLine("Protection provider: {0}", _
        pp.ToString())
    End If

End Sub

설명

보호되지 않는 섹션의 경우 속성은 ProtectionProvider 입니다 null.

보호된 구성 섹션에 대한 자세한 내용은 보호된 구성을 사용하여 구성 정보 암호화를 참조하세요.

적용 대상

추가 정보