PlugInAttribute コンストラクター

PlugInAttribute クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.AnalysisServices.AdomdServer
アセンブリ:  msmgdsrv (msmgdsrv.dll)

構文

'宣言
Public Sub New
'使用
Dim instance As New PlugInAttribute()
public PlugInAttribute()
public:
PlugInAttribute()
new : unit -> PlugInAttribute
public function PlugInAttribute()

説明

次のコードは、ASPE (Analysis Services のパーソナル化拡張機能) の一部であり、PlugInAttribute カスタム属性を使用してコードにタグを付ける方法を示しています。

注意

次のサンプル コードは、Microsoft SQL Server Samples and Community Projects Web サイトからもダウンロードできます。 サンプルのダウンロード方法およびインストール方法の詳細については、SQL Server オンライン ブックの「SQL Server のサンプルとサンプル データベースのインストール」を参照してください。

使用例

using System;

using System.Collections.Generic;

using System.Text;

using Microsoft.AnalysisServices.AdomdServer;

namespace ISV_1.ASClientExtensions

{

[PlugInAttribute]

public class ASClientExtensions

{

public ASClientExtensions()

{

Context.Server.SessionOpened += new EventHandler(this.SessionOpened);

Context.Server.SessionClosing += new EventHandler(this.SessionClosing);

//Verify and set environment for ClientExtensions.

AuthoringAndManagement environment = new AuthoringAndManagement();

}

~ASClientExtensions()

{

}

public void SessionOpened(object sender, EventArgs e)

{

// This will subscribe to the events.

SessionMgr session = new SessionMgr();

}

public void SessionClosing(object sender, EventArgs e)

{

}

}

}

関連項目

参照

PlugInAttribute クラス

Microsoft.AnalysisServices.AdomdServer 名前空間