WindowsPrincipal コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WindowsPrincipal コンストラクタの意味・解説 

WindowsPrincipal コンストラクタ

WindowsIdentity オブジェクト指定してWindowsPrincipal クラス新しインスタンス初期化します。

名前空間: System.Security.Principal
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub New ( _
    ntIdentity As WindowsIdentity _
)
Dim ntIdentity As WindowsIdentity

Dim instance As New WindowsPrincipal(ntIdentity)
public WindowsPrincipal (
    WindowsIdentity ntIdentity
)
public:
WindowsPrincipal (
    WindowsIdentity^ ntIdentity
)
public WindowsPrincipal (
    WindowsIdentity ntIdentity
)
public function WindowsPrincipal (
    ntIdentity : WindowsIdentity
)

パラメータ

ntIdentity

WindowsPrincipal の新しインスタンス生成元となる WindowsIdentity オブジェクト

例外例外
例外種類条件

ArgumentNullException

ntIdentitynull 参照 (Visual Basic では Nothing) です。

使用例使用例

現在の WindowsIdentity オブジェクトから新しWindowsPrincipal オブジェクト作成する例を次に示します

Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()
Dim wp As New WindowsPrincipal(wi)        

WindowsIdentity wi = WindowsIdentity.GetCurrent();
WindowsPrincipal wp = new WindowsPrincipal(wi);

WindowsIdentity^ wi = WindowsIdentity::GetCurrent();
WindowsPrincipal^ wp = gcnew WindowsPrincipal( wi );
WindowsIdentity wi = WindowsIdentity.GetCurrent();
WindowsPrincipal wp = new WindowsPrincipal(wi);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WindowsPrincipal クラス
WindowsPrincipal メンバ
System.Security.Principal 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「WindowsPrincipal コンストラクタ」の関連用語

WindowsPrincipal コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WindowsPrincipal コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS