LicenseExceptionとは? わかりやすく解説

LicenseException クラス

コンポーネントライセンス与えられなかった場合スローされる例外表します

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

<SerializableAttribute> _
Public Class LicenseException
    Inherits SystemException
Dim instance As LicenseException
[SerializableAttribute] 
public class LicenseException : SystemException
[SerializableAttribute] 
public ref class LicenseException : public
 SystemException
/** @attribute SerializableAttribute() */ 
public class LicenseException extends SystemException
SerializableAttribute 
public class LicenseException extends
 SystemException
解説解説
使用例使用例

LicenseExceptionキャッチしその内容解釈するコード例次に示します。このサンプルでは、アプリケーションは、ライセンス付きでない System.Windows.Forms.Form に対して Validate メソッド呼び出します。例外キャッチしたときに、このサンプルそれぞれのエラー メッセージライセンス付きでないコンポーネント種類スタック トレース、および例外発生源フェッチます。

この例では、System.Windows.Forms.Form を LicenseProviderAttribute 属性マークして、LicenseProvider を指定していることが必要です。この方法の詳細については、LicenseManager クラストピック参照してください

Try
    Dim licTest As License
    licTest = LicenseManager.Validate(GetType(Form1), Me)
Catch licE As LicenseException
    Console.WriteLine(licE.Message)
    Console.WriteLine(licE.LicensedType)
    Console.WriteLine(licE.StackTrace)
    Console.WriteLine(licE.Source)
End Try
try {
    License licTest = null;
    licTest = LicenseManager.Validate(typeof(Form1), this);
}

catch(LicenseException licE) {
    Console.WriteLine(licE.Message);
    Console.WriteLine(licE.LicensedType);
    Console.WriteLine(licE.StackTrace);
    Console.WriteLine(licE.Source);    
}
try
{
   License^ licTest = nullptr;
   licTest = LicenseManager::Validate( Form1::typeid, this );
}
catch ( LicenseException^ licE ) 
{
   Console::WriteLine( licE->Message );
   Console::WriteLine( licE->LicensedType );
   Console::WriteLine( licE->StackTrace );
   Console::WriteLine( licE->Source );
}
try {
    License licTest = null;
    licTest = LicenseManager.Validate(Form1.class.ToType(), this);
}
catch (LicenseException licE) {
    Console.WriteLine(licE.get_Message());
    Console.WriteLine(licE.get_LicensedType());
    Console.WriteLine(licE.get_StackTrace());
    Console.WriteLine(licE.get_Source());
}
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.ComponentModel.LicenseException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LicenseException メンバ
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode

LicenseException コンストラクタ (Type)


LicenseException コンストラクタ (Type, Object, String, Exception)

ライセンス拒否されコンポーネントの型とインスタンス表示するメッセージスローされた元の例外指定して、LicenseException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    type As Type, _
    instance As Object, _
    message As String, _
    innerException As Exception _
)
Dim type As Type
Dim instance As Object
Dim message As String
Dim innerException As Exception

Dim instance As New LicenseException(type,
 instance, message, innerException)
public LicenseException (
    Type type,
    Object instance,
    string message,
    Exception innerException
)
public:
LicenseException (
    Type^ type, 
    Object^ instance, 
    String^ message, 
    Exception^ innerException
)
public LicenseException (
    Type type, 
    Object instance, 
    String message, 
    Exception innerException
)
public function LicenseException (
    type : Type, 
    instance : Object, 
    message : String, 
    innerException : Exception
)

パラメータ

type

ライセンス与えられなかったコンポーネントの型を表す Type

instance

ライセンス与えられなかったコンポーネントインスタンス

message

表示する例外メッセージ

innerException

元の例外を表す Exception

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

LicenseException コンストラクタ (Type, Object, String)

ライセンス拒否されコンポーネントの型とインスタンス表示するメッセージ指定して、LicenseException クラス新しインスタンス初期化します。

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

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

LicenseException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した SerializationInfo と StreamingContext を使用して、LicenseException クラス新しインスタンス初期化します。

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

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New LicenseException(info,
 context)
protected LicenseException (
    SerializationInfo info,
    StreamingContext context
)
protected:
LicenseException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected LicenseException (
    SerializationInfo info, 
    StreamingContext context
)
protected function LicenseException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

シリアル化使用する SerializationInfo。

context

シリアル化使用する転送先。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

LicenseException コンストラクタ

LicenseException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

LicenseException クラス
LicenseException メンバ
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseException クラス
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode

LicenseException コンストラクタ (Type, Object)

ライセンス拒否されコンポーネントの型とインスタンス指定して、LicenseException クラス新しインスタンス初期化します。

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

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

LicenseException プロパティ


パブリック プロパティパブリック プロパティ

プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

LicenseException クラス
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode

LicenseException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LicenseException クラス
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode

LicenseException メンバ

コンポーネントライセンス与えられなかった場合スローされる例外表します

LicenseException データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LicenseException クラス
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode



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

辞書ショートカット

すべての辞書の索引

「LicenseException」の関連用語

LicenseExceptionのお隣キーワード
検索ランキング

   

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



LicenseExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS