次の方法で共有


Server.Assemblies Property

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

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

構文

'宣言
<XmlArrayAttribute> _
<BrowsableAttribute(False)> _
Public ReadOnly Property Assemblies As AssemblyCollection
[XmlArrayAttribute] 
[BrowsableAttribute(false)] 
public AssemblyCollection Assemblies { get; }
[XmlArrayAttribute] 
[BrowsableAttribute(false)] 
public:
property AssemblyCollection^ Assemblies {
    AssemblyCollection^ get ();
}
/** @property */
public AssemblyCollection get_Assemblies ()
public function get Assemblies () : AssemblyCollection

プロパティ値

アセンブリのコレクションです。

解説

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

使用例

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

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

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Server Class
Server Members
Microsoft.AnalysisServices Namespace