Compartir a través de


Server.Assemblies Property

Gets a collection of assemblies from the Server object.

Espacio de nombres: Microsoft.AnalysisServices
Ensamblado: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Sintaxis

'Declaración
<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

Valor de propiedad

An assembly collection.

Notas

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

Ejemplo

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

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

Server Class
Server Members
Microsoft.AnalysisServices Namespace