Server.Assemblies Property

Gets a collection of assemblies from the Server object.

命名空间: Microsoft.AnalysisServices
程序集: Microsoft.AnalysisServices (in 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

属性值

An assembly collection.

备注

The collections associated with Server Assemblies are typically collections of DLLs. The user functions defined in assemblies can be called from MDX queries.

示例

The following code creates a Database Assembly, iterates through it, and then adds a DLL to the collection.

// 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);

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

Server Class
Server Members
Microsoft.AnalysisServices Namespace