AuthenticationType Sabit listesi

Tanım

Hak yönetimi kimlik doğrulaması yöntemini belirtir.

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
Devralma
AuthenticationType

Alanlar

Name Değer Description
Windows 0

Şirket etki alanı ortamında Windows authentication.

Passport 1

Live ID kimlik doğrulaması Windows.

WindowsPassport 2

Live ID kimlik doğrulaması Windows authentication veya Windows.

Internal 3

İstekte bulunabilecek herhangi bir kullanıcı için örtük kimlik doğrulaması.

Örnekler

Aşağıdaki örnekte numaralandırmanın AuthenticationType kullanımı da gösterilmektedir.

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

Açıklamalar

AuthenticationType hakları yönetilen içeriğe erişen kullanıcıların kimliğinin nasıl doğrulanacaklarını belirtir.

Internal ayrıca, korumalı bir belgenin veya şablonun sahibi ve yazarı için kimlik doğrulaması sağlar.

Şunlara uygulanır

Ayrıca bkz.