Freigeben über


Server.Assemblies Property

Gets a collection of assemblies from the Server object.

Namespace: Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntax

'Declaration
<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

Eigenschaftswert

An assembly collection.

Hinweise

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

Beispiel

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

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Server Class
Server Members
Microsoft.AnalysisServices Namespace