Server.Assemblies Property
Applies To: SQL Server 2016 Preview
Gets a collection of assemblies from the Server object.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
[BrowsableAttribute(false)]
[XmlArrayAttribute]
public AssemblyCollection Assemblies { get; }
public:
[BrowsableAttribute(false)]
[XmlArrayAttribute]
property AssemblyCollection^ Assemblies {
AssemblyCollection^ get();
}
[<BrowsableAttribute(false)>]
[<XmlArrayAttribute>]
member Assemblies : AssemblyCollection with get
<BrowsableAttribute(False)>
<XmlArrayAttribute>
Public ReadOnly Property Assemblies As AssemblyCollection
Property Value
Type: Microsoft.AnalysisServices.AssemblyCollection
An assembly collection.
Remarks
The collections associated with Server Assemblies are typically collections of DLLs. The user functions defined in assemblies can be called from MDX queries.
Examples
Legacy Code Example
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);
See Also
Server Class
Microsoft.AnalysisServices Namespace
Return to top