Udostępnij przez


Właściwość Server.Assemblies

Pobiera kolekcja zestawów z Server obiektu.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
<BrowsableAttribute(False)> _
Public ReadOnly Property Assemblies As AssemblyCollection
    Get
'Użycie
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

Wartość właściwości

Typ: Microsoft.AnalysisServices.AssemblyCollection
Kolekcja wirtualny plik dziennika.

Uwagi

Kolekcje skojarzonych z zespołów serwera są zazwyczaj zbiory bibliotek DLL.Funkcje użytkownika zdefiniowane w zestawach może być wywołana z kwerendy MDX.

Przykłady

Poniższy kod tworzy zestaw bazy danych, iterację go i następnie dodaje do kolekcja biblioteki 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);