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

LicFileLicenseProvider クラス

LicenseProvider の実装を提供します。このプロバイダは、Microsoft .NET Framework の標準ライセンス モジュールと同様に機能します。

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

Public Class LicFileLicenseProvider
    Inherits LicenseProvider
Dim instance As LicFileLicenseProvider
public class LicFileLicenseProvider : LicenseProvider
public ref class LicFileLicenseProvider : public
 LicenseProvider
public class LicFileLicenseProvider extends
 LicenseProvider
public class LicFileLicenseProvider extends
 LicenseProvider
解説解説
使用例使用例

Validate メソッドを使用して、ライセンスされたコントロールを作成する例を次に示します。ライセンス マネージャのために LicFileLicenseProvider を使用します。

Imports System
Imports System.ComponentModel
Imports System.Windows.Forms

' Adds the LicenseProviderAttribute to the control.
<LicenseProvider(GetType(LicFileLicenseProvider))> _
Public Class MyControl
    Inherits Control
    
    ' Creates a new, null license.
    Private license As License = Nothing
    
    
    Public Sub New()   
     
    
        ' Adds Validate to the control's constructor.
        license = LicenseManager.Validate(GetType(MyControl),
 Me)

        ' Insert code to perform other instance creation tasks here.
        
    End Sub
    
    Protected Overrides Sub
 Dispose(ByVal disposing As Boolean)

        If disposing Then
            If Not (license Is
 Nothing) Then
                license.Dispose()
                license = Nothing
            End If
        End If

    End Sub    
    
End Class

using System;
using System.ComponentModel;
using System.Windows.Forms;


// Adds the LicenseProviderAttribute to the control.
[LicenseProvider(typeof(LicFileLicenseProvider))]
public class MyControl : Control 
{
 
   // Creates a new, null license.
   private License license = null;
 
   public MyControl () 
   {
 
      // Adds Validate to the control's constructor.
      license = LicenseManager.Validate(typeof(MyControl), this);
 
      // Insert code to perform other instance creation tasks here.
   }
 
   protected override void Dispose(bool
 disposing) 
   {
      if(disposing)
      {
         if (license != null) 
         {
            license.Dispose();
            license = null;
         }
      }
   }
 
}
// Adds the LicenseProviderAttribute to the control.

[LicenseProvider(LicFileLicenseProvider::typeid)]
public ref class MyControl: public
 Control
{
   // Creates a new, null license.
private:
   License^ license;

public:
   MyControl()
   {
      
      // Adds Validate to the control's constructor.
      license = LicenseManager::Validate( MyControl::typeid, this
 );

      // Insert code to perform other instance creation tasks here.
   }

public:
   ~MyControl()
   {
      if ( license != nullptr )
      {
         delete license;
         license = nullptr;
      }
   }
};
import System.*;
import System.ComponentModel.*;
import System.Windows.Forms.*;


// Adds the LicenseProviderAttribute to the control.
/** @attribute LicenseProvider(LicFileLicenseProvider.class)
 */
public class MyControl extends Control
{
    // Creates a new, null license.
    private License license = null;

    public MyControl()
    {
        // Adds Validate to the control's constructor.
        license = LicenseManager.Validate(MyControl.class.ToType(),
 this);

        // Insert code to perform other instance creation tasks here.
    } 
    
    protected void Dispose(boolean disposing)
    {
        if (disposing) {
            if (license != null) {
                license.Dispose();
                license = null;
            }
        }
    } 
} 
継承階層継承階層
System.Object
   System.ComponentModel.LicenseProvider
    System.ComponentModel.LicFileLicenseProvider
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LicFileLicenseProvider メンバ
System.ComponentModel 名前空間
License クラス
LicenseContext クラス
LicenseException クラス
LicenseManager クラス
LicenseProvider クラス
LicenseProviderAttribute クラス
LicFileLicenseProvider クラス
LicenseUsageMode 列挙体

LicFileLicenseProvider コンストラクタ


LicFileLicenseProvider メソッド


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

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

関連項目

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

LicFileLicenseProvider メンバ

LicenseProvider の実装を提供します。このプロバイダは、Microsoft .NET Framework の標準ライセンス モジュールと同様に機能します。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド LicFileLicenseProvider LicFileLicenseProvider クラスの新しいインスタンスを初期化します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「LicFileLicenseProvider」の関連用語

LicFileLicenseProviderのお隣キーワード

   

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



LicFileLicenseProviderのページの著作権

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

©2026 GRAS Group, Inc.RSS