次の方法で共有


LicenseContext.SetSavedLicenseKey メソッド

派生クラスでオーバーライドされた場合、指定された型のライセンス キーを設定します。

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

構文

'宣言
Public Overridable Sub SetSavedLicenseKey ( _
    type As Type, _
    key As String _
)
'使用
Dim instance As LicenseContext
Dim type As Type
Dim key As String

instance.SetSavedLicenseKey(type, key)
public virtual void SetSavedLicenseKey (
    Type type,
    string key
)
public:
virtual void SetSavedLicenseKey (
    Type^ type, 
    String^ key
)
public void SetSavedLicenseKey (
    Type type, 
    String key
)
public function SetSavedLicenseKey (
    type : Type, 
    key : String
)

パラメータ

  • type
    ライセンス キーに関連付けられているコンポーネントを表す Type
  • key
    コンポーネントの型に対して保存する LicenseKey

解説

通常、デザイン時に LicenseUsageMode を設定するときにこのメソッドを呼び出します。デザイン時のライセンス サポートを実装するには、UsageMode プロパティをオーバーライドする必要があります。

継承時の注意 このメソッドは、保存されたライセンス キーはサポートしていません。キーを実装するには、このメソッドと GetSavedLicenseKey メソッドをオーバーライドします。

プラットフォーム

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