AuthenticationType Enumeration

Definition

Gibt die Methode der Rechteverwaltungsauthentifizierung an.

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

Felder

Name Wert Beschreibung
Windows 0

Windows-Authentifizierung in einer Unternehmensdomänenumgebung.

Passport 1

Windows Live ID-Authentifizierung.

WindowsPassport 2

Entweder Windows-Authentifizierung oder Windows Live ID-Authentifizierung.

Internal 3

Implizite Authentifizierung für jeden anfordernden Benutzer.

Beispiele

Das folgende Beispiel zeigt auch die Verwendung der AuthenticationType Enumeration.

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

Hinweise

AuthenticationType Gibt an, wie Benutzer, die auf verwaltete Inhalte zugreifen, authentifiziert werden sollen.

Internal stellt außerdem die Authentifizierung für den Besitzer und Autor eines geschützten Dokuments oder einer geschützten Vorlage bereit.

Gilt für:

Weitere Informationen