LicenseProvider.GetLicense メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > LicenseProvider.GetLicense メソッドの意味・解説 

LicenseProvider.GetLicense メソッド

派生クラスでオーバーライドされた場合、コンテキストと、ライセンスが拒否された場合に例外がスローされるかどうかが指定されたときに、コンポーネントのインスタンスまたは型に対するライセンスを取得します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public MustOverride Function
 GetLicense ( _
    context As LicenseContext, _
    type As Type, _
    instance As Object, _
    allowExceptions As Boolean _
) As License
Dim instance As LicenseProvider
Dim context As LicenseContext
Dim type As Type
Dim instance As Object
Dim allowExceptions As Boolean
Dim returnValue As License

returnValue = instance.GetLicense(context, type, instance, allowExceptions)
public abstract License GetLicense (
    LicenseContext context,
    Type type,
    Object instance,
    bool allowExceptions
)
public:
virtual License^ GetLicense (
    LicenseContext^ context, 
    Type^ type, 
    Object^ instance, 
    bool allowExceptions
) abstract
public abstract License GetLicense (
    LicenseContext context, 
    Type type, 
    Object instance, 
    boolean allowExceptions
)
public abstract function GetLicense (
    context : LicenseContext, 
    type : Type, 
    instance : Object, 
    allowExceptions : boolean
) : License

パラメータ

context

ライセンス付きのオブジェクトを使用できる位置を指定する LicenseContext。

type

ライセンスを要求しているコンポーネントを表す Type。

instance

ライセンスを要求しているオブジェクト。

allowExceptions

コンポーネントにライセンスが与えられなかったときに LicenseException をスローする必要がある場合は true。それ以外の場合は false。

戻り値
有効な License。

解説解説

継承時の注意 LicenseProvider から継承する場合は、GetLicense をオーバーライドして、ライセンス キーに対する検証メソッドを実装する必要があります。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LicenseProvider クラス
LicenseProvider メンバ
System.ComponentModel 名前空間
Dispose
License クラス
LicenseContext クラス
LicenseException クラス
LicenseManager クラス
LicenseProvider クラス
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「LicenseProvider.GetLicense メソッド」の関連用語

LicenseProvider.GetLicense メソッドのお隣キーワード
検索ランキング

   

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



LicenseProvider.GetLicense メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS