AuthenticationType 列挙型

定義

権限管理認証の方法を指定します。

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
継承
AuthenticationType

フィールド

Internal 3

要求するすべてのユーザーに対する暗黙の認証。

Passport 1

Live ID 認証をWindowsします。

Windows 0

企業ドメイン環境でWindows 認証します。

WindowsPassport 2

Live ID 認証をWindows 認証またはWindowsします。

次の例では、列挙体の 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 また、保護されたドキュメントまたはテンプレートの所有者と作成者に対する認証も提供します。

適用対象

こちらもご覧ください