Server.Assemblies プロパティ

Server オブジェクトからアセンブリのコレクションを取得します。

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

構文

'宣言
<BrowsableAttribute(False)> _
Public ReadOnly Property Assemblies As AssemblyCollection 
    Get
'使用
Dim instance As Server 
Dim value As AssemblyCollection 

value = instance.Assemblies
[BrowsableAttribute(false)]
public AssemblyCollection Assemblies { get; }
[BrowsableAttribute(false)]
public:
property AssemblyCollection^ Assemblies {
    AssemblyCollection^ get ();
}
[<BrowsableAttribute(false)>]
member Assemblies : AssemblyCollection
function get Assemblies () : AssemblyCollection

プロパティ値

型: Microsoft.AnalysisServices.AssemblyCollection
アセンブリのコレクションです。

説明

サーバー アセンブリに関連付けられたコレクションは、通常は DLL のコレクションです。 アセンブリに定義されているユーザー関数は、MDX クエリから呼び出すことができます。

使用例

次のコードでは、データベース アセンブリを作成し、反復処理を行って DLL をコレクションに追加します。

// Create instance of Analysis Services objectMicrosoft.AnalysisServices.Server myServer = new Server();myServer.Connect( strConnectionString);Database myDatabase = myServer.Databases[ strDatabaseName];// Iterate through elements contained in the assembly myDatabaseForeach (Assembly myAssembly in myDatabase.Assemblies)// Write out the name of existing members of assemblySystem.Console.Writeline( myAssembly.Name);// Add a new DLL to the assemblymyDatabase.Assemblies.Add( strNewRankFunctionInDll);

関連項目

参照

Server クラス

Microsoft.AnalysisServices 名前空間