Поделиться через


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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

Server Class
Server Members
Microsoft.AnalysisServices Namespace