AuthenticationType 열거형

정의

권한 관리 인증 방법을 지정합니다.

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
상속
AuthenticationType

필드

Internal 3

요청하는 사용자에 대한 인증을 암시합니다.

Passport 1

라이브 ID 인증을 Windows.

Windows 0

회사 도메인 환경에서 Windows 인증.

WindowsPassport 2

Windows 인증 또는 Windows 라이브 ID 인증.

예제

다음 예제에서는 사용 된 AuthenticationType 열거형입니다.

string applicationManifest = "<manifest></manifest>";
if (File.Exists("rpc.xml"))
{
    StreamReader manifestReader = File.OpenText("rpc.xml");
    applicationManifest = manifestReader.ReadToEnd();
}

if (_secureEnv == null)
{
    if (SecureEnvironment.IsUserActivated(new ContentUser(
                _currentUserId, AuthenticationType.Windows)))
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest, new ContentUser(
                _currentUserId, AuthenticationType.Windows));
    }
    else
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest,
            AuthenticationType.Windows,
            UserActivationMode.Permanent);
    }
}
Dim applicationManifest As String = "<manifest></manifest>"
If File.Exists("rpc.xml") Then
    Dim manifestReader As StreamReader = File.OpenText("rpc.xml")
    applicationManifest = manifestReader.ReadToEnd()
End If

If _secureEnv Is Nothing Then
    If SecureEnvironment.IsUserActivated(New ContentUser(_currentUserId, AuthenticationType.Windows)) Then
        _secureEnv = SecureEnvironment.Create(applicationManifest, New ContentUser(_currentUserId, AuthenticationType.Windows))
    Else
        _secureEnv = SecureEnvironment.Create(applicationManifest, AuthenticationType.Windows, UserActivationMode.Permanent)
    End If
End If

설명

AuthenticationType 권한 관리 콘텐츠에 액세스 하는 사용자를 인증 하는 방법을 지정 합니다.

Internal 또한 소유자 및 보호 된 문서 또는 서식 파일의 작성자에 대 한 인증을 제공합니다.

적용 대상

추가 정보