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

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

LicFileLicenseProvider.GetLicense メソッド

コンポーネントインスタンス与えられるライセンスがある場合は、そのライセンス返します

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

Public Overrides Function
 GetLicense ( _
    context As LicenseContext, _
    type As Type, _
    instance As Object, _
    allowExceptions As Boolean _
) As License
Dim instance As LicFileLicenseProvider
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 override License GetLicense (
    LicenseContext context,
    Type type,
    Object instance,
    bool allowExceptions
)
public:
virtual License^ GetLicense (
    LicenseContext^ context, 
    Type^ type, 
    Object^ instance, 
    bool allowExceptions
) override
public License GetLicense (
    LicenseContext context, 
    Type type, 
    Object instance, 
    boolean allowExceptions
)
public override function GetLicense (
    context : LicenseContext, 
    type : Type, 
    instance : Object, 
    allowExceptions : boolean
) : License

パラメータ

context

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

type

License要求しているコンポーネントを表す Type

instance

License要求するオブジェクト

allowExceptions

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

戻り値
有効な License。このメソッドは、有効な License または context パラメータ見つからなかった場合null 参照 (Visual Basic では Nothing) を返します

解説解説

デザイン時にはGetLicense メソッドmyClassName.LIC という名前のライセンス ファイル検索します。ここで myClassName作成するコンポーネントFullName です。このファイルは、コンポーネント格納されている .dll ファイルと同じディレクトリ内に存在する必要があります

次に、このメソッドは、ライセンス ファイル最初の行を IsKeyValid メソッド指定されキー照合しますキー有効な場合、この行は LicenseKey として使用されます。

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



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

辞書ショートカット

すべての辞書の索引

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

   

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



LicFileLicenseProvider.GetLicense メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS