다음을 통해 공유


Assemblies 속성

Gets a collection of assemblies from the Server object.

네임스페이스:  Microsoft.AnalysisServices
어셈블리:  Microsoft.AnalysisServices.dll의 Microsoft.AnalysisServices

구문

‘선언
<BrowsableAttribute(False)> _
Public ReadOnly Property Assemblies As AssemblyCollection
    Get
‘사용 방법
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

속성 값

형식: Microsoft.AnalysisServices. . :: . .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);