Compartilhar via


Propriedade do RDL Server.Assemblies

Gets a collection of assemblies from the Server object.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
<BrowsableAttribute(False)> _
Public ReadOnly Property Assemblies As AssemblyCollection 
    Get
'Uso
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

Valor da propriedade

Tipo: Microsoft.AnalysisServices.AssemblyCollection
An assembly collection.

Comentários

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

Exemplos

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

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

Consulte também

Referência

Server Classe

Namespace Microsoft.AnalysisServices