英語で読む

次の方法で共有


AuthenticationType 列挙型

定義

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

C#
public enum AuthenticationType
継承
AuthenticationType

フィールド

Internal 3

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

Passport 1

Live ID 認証をWindowsします。

Windows 0

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

WindowsPassport 2

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

次の例では、列挙体の AuthenticationType 使用も示しています。

C#
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);
    }
}

注釈

AuthenticationType は、権限管理コンテンツにアクセスするユーザーを認証する方法を指定します。

Internal また、保護されたドキュメントまたはテンプレートの所有者と作成者に対する認証も提供します。

適用対象

製品 バージョン
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

こちらもご覧ください