다음을 통해 공유


UnsignedPublishLicense.Owner 속성

정의

콘텐츠 소유자를 가져오거나 설정합니다.

public:
 property System::Security::RightsManagement::ContentUser ^ Owner { System::Security::RightsManagement::ContentUser ^ get(); void set(System::Security::RightsManagement::ContentUser ^ value); };
public System.Security.RightsManagement.ContentUser Owner { get; set; }
member this.Owner : System.Security.RightsManagement.ContentUser with get, set
Public Property Owner As ContentUser

속성 값

ContentUser

게시된 콘텐츠의 소유자입니다.

예제

다음 예제에서는이 속성을 사용 하 여 할당 하는 방법을 보여 줍니다는 ContentUser합니다.

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

설명

Owner 소유 하는 사용자 지정을 PublishLicense입니다.

Owner 는 발급 라이선스 XrML(Extensible Rights Markup Language)의 소유자 노드와도 연결됩니다.

적용 대상

추가 정보