派生クラスでオーバーライドされた場合、指定されたリソース アセンブリから、指定された型に対して保存されているライセンス キーを返します。
名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文
'宣言
Public Overridable Function GetSavedLicenseKey ( _
type As Type, _
resourceAssembly As Assembly _
) As String
'使用
Dim instance As LicenseContext
Dim type As Type
Dim resourceAssembly As Assembly
Dim returnValue As String
returnValue = instance.GetSavedLicenseKey(type, resourceAssembly)
public virtual string GetSavedLicenseKey (
Type type,
Assembly resourceAssembly
)
public:
virtual String^ GetSavedLicenseKey (
Type^ type,
Assembly^ resourceAssembly
)
public String GetSavedLicenseKey (
Type type,
Assembly resourceAssembly
)
public function GetSavedLicenseKey (
type : Type,
resourceAssembly : Assembly
) : String
パラメータ
- type
コンポーネントの型を表す Type。
- resourceAssembly
ライセンス キーを持つ Assembly。
戻り値
指定した型の LicenseKey。このメソッドは、オーバーライドされない限り null 参照 (Visual Basic では Nothing) を返します。
解説
継承時の注意 保存されたライセンス キーを実装するには、このメソッドと SetSavedLicenseKey メソッドをオーバーライドします。resourceAssembly パラメータが null 参照 (Visual Basic では Nothing) である場合は、最初に実行される Assembly からリソースを取得できます。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
LicenseContext クラス
LicenseContext メンバ
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseException
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode