ContentUser 클래스

정의

권한 관리 콘텐츠에 대한 액세스를 부여하기 위한 사용자 또는 사용자 그룹을 나타냅니다.

public ref class ContentUser
[System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)]
public class ContentUser
public class ContentUser
[<System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)>]
type ContentUser = class
type ContentUser = class
Public Class ContentUser
상속
ContentUser
특성

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다 Owner 속성을이 형식의 변수에 할당 합니다.

WriteStatus("   Reading '" + xrmlFilename + "' permissions.");
try
{
    StreamReader sr = File.OpenText(xrmlFile);
    xrmlString = sr.ReadToEnd();
}
catch (Exception ex)
{
    MessageBox.Show("ERROR: '"+xrmlFilename+"' open failed.\n"+
        "Exception: " + ex.Message, "XrML File Error",
        MessageBoxButton.OK, MessageBoxImage.Error);
    return false;
}

WriteStatus("   Building UnsignedPublishLicense");
WriteStatus("       from '" + xrmlFilename + "'.");
UnsignedPublishLicense unsignedLicense =
    new UnsignedPublishLicense(xrmlString);
ContentUser author = unsignedLicense.Owner;
WriteStatus("   Reading '" & xrmlFilename & "' permissions.")
Try
    Dim sr As StreamReader = File.OpenText(xrmlFile)
    xrmlString = sr.ReadToEnd()
Catch ex As Exception
    MessageBox.Show("ERROR: '" & xrmlFilename &"' open failed." & vbLf & "Exception: " & ex.Message, "XrML File Error", MessageBoxButton.OK, MessageBoxImage.Error)
    Return False
End Try

WriteStatus("   Building UnsignedPublishLicense")
WriteStatus("       from '" & xrmlFilename & "'.")
Dim unsignedLicense As New UnsignedPublishLicense(xrmlString)
Dim author As ContentUser = unsignedLicense.Owner

설명

다른와 마찬가지로 System.Security.RightsManagement 형식을 ContentUser 완전 신뢰 애플리케이션에만 유용 합니다.

생성자

ContentUser(String, AuthenticationType)

ContentUser 클래스의 새 인스턴스를 초기화합니다.

속성

AnyoneUser

"Anyone" ContentUser 가상 사용자의 인스턴스를 가져옵니다.

AuthenticationType

AuthenticationType 생성자에 지정된 ContentUser(String, AuthenticationType)을 가져옵니다.

Name

ContentUser(String, AuthenticationType) 생성자에 지정된 사용자 또는 그룹 이름을 가져옵니다.

OwnerUser

"Owner" ContentUser 가상 사용자의 인스턴스를 가져옵니다.

메서드

Equals(Object)

ContentUser가 지정된 다른 인스턴스와 동일한지 여부를 나타내는 값을 반환합니다.

GetHashCode()

사용자 NameAuthenticationType에 따라 계산된 해시 코드를 반환합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IsAuthenticated()

사용자가 현재 인증되었는지 여부를 나타내는 값을 반환합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상