次の方法で共有


Permission.DocumentAuthor プロパティ

定義

現在のフォームの作成者を電子メール アドレス形式で取得または設定します。

public:
 property System::String ^ DocumentAuthor { System::String ^ get(); void set(System::String ^ value); };
public string DocumentAuthor { get; set; }
member this.DocumentAuthor : string with get, set
Public Property DocumentAuthor As String

プロパティ値

フォームの作成者の電子メール アドレス。

次の例では、DocumentAuthor プロパティを使用して、ドキュメント作成者の電子メール アドレスを表示しています。

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(thisDoc.Permission.DocumentAuthor);
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(thisDoc.Permission.DocumentAuthor)

注釈

フォームの作成者は、所有者のアクセス許可がオブジェクトを介して明示的に付与されているかどうかに関係なく、フォームに対する期限切れでない所有者権限を常に持 UserPermission ちます。

Permission オブジェクトとそのメンバーは Microsoft InfoPath を初めて使用するため、このオブジェクトとそのメンバーにアクセスするには、thisXDocument 変数によって返されるオブジェクトを_XDocument3型にキャストする必要があります。 詳細については、「[方法] InfoPath 2003 と互換性のないオブジェクト モデルのメンバーを使用する方法」を参照してください。

このメンバは、現在開いているフォームと同じドメインで実行中のフォーム、またはクロスドメインのアクセス許可が与えられたフォームだけがアクセスできます。

適用対象