次の方法で共有


NamedSetCollection Class

CubeDef に含まれる NamedSet オブジェクトの読み取り専用の要求時コレクションを取得します。

名前空間: Microsoft.AnalysisServices.AdomdClient
アセンブリ: Microsoft.AnalysisServices.AdomdClient (microsoft.analysisservices.adomdclient.dll 内)

構文

'宣言
<DefaultMemberAttribute("Item")> _
Public NotInheritable Class NamedSetCollection
    Implements ICollection, IEnumerable
[DefaultMemberAttribute("Item")] 
public sealed class NamedSetCollection : ICollection, IEnumerable
[DefaultMemberAttribute(L"Item")] 
public ref class NamedSetCollection sealed : ICollection, IEnumerable
/** @attribute DefaultMemberAttribute("Item") */ 
public final class NamedSetCollection implements ICollection, IEnumerable
DefaultMemberAttribute("Item") 
public final class NamedSetCollection implements ICollection, IEnumerable

継承階層

System.Object
  Microsoft.AnalysisServices.AdomdClient.NamedSetCollection

使用例

次のサブルーチンでは、CubeDef を受け取り、NamedSetCollection コレクションの繰り返し処理を実行し、各名前付きセットの情報を表示します。

Public Sub ListNamedSetCollection(ByRef CubeToCheck As CubeDef)

    ' Check the parameter before performing actions on it.
    If CubeToCheck Is Nothing Then
        Throw New System.ArgumentNullException("CubeToCheck")
    Else
        ' Iterate through the NamedSetCollection collection of the
        ' CubeDef object.

        Try
            Dim nsetToCheck As NamedSet

            Debug.WriteLine("Found " & CubeToCheck.NamedSets.Count & _
                " named set(s) in cube:")

            For Each nsetToCheck In CubeToCheck.NamedSets
                Debug.WriteLine("Named Set:  " & nsetToCheck.Name)
                Debug.WriteLine("    Description:  " & _
                    nsetToCheck.Description)
                Debug.WriteLine("    Expression:   " & _
                    nsetToCheck.Expression)
            Next
        Catch e As System.Exception
            Debug.WriteLine(e)
        End Try
    End If
End Sub

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

NamedSetCollection Members
Microsoft.AnalysisServices.AdomdClient Namespace