다음을 통해 공유


MemberProperty 클래스

Represents a single member property for a given member.

상속 계층

System.Object
  Microsoft.AnalysisServices.AdomdClient.MemberProperty

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.dll)

구문

‘선언
Public NotInheritable Class MemberProperty
‘사용 방법
Dim instance As MemberProperty
public sealed class MemberProperty
public ref class MemberProperty sealed
[<SealedAttribute>]
type MemberProperty =  class end
public final class MemberProperty

MemberProperty 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 Name Gets the name of the MemberProperty.
공용 속성 UniqueName Gets the fully-qualified name of the MemberProperty.
공용 속성 Value Gets the value of the MemberProperty.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals Determines whether two instances of MemberProperty are equal. (Object.Equals(Object)을(를) 재정의함)
공용 메서드 GetHashCode Serves as a hash function for a particular type, for use in hashing algorithms and data structures such as hash tables. (Object.GetHashCode()을(를) 재정의함)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 ToString A String that contains the name of the MemberProperty. (Object.ToString()을(를) 재정의함)

맨 위로 이동

연산자

  이름 설명
공용 연산자정적 멤버 Equality Determines whether two instances of MemberProperty are equal.
공용 연산자정적 멤버 Inequality Determines whether two instances of MemberProperty are unequal.

맨 위로 이동

주의

In the axis specification for a given axis in a multidimensional query, the set expression selects tuples with which to populate the axis. The cellset returns basic information about each member in each tuple, such as member name, parent level, and number of children. Members often have additional properties associated with them, referred to as member properties, which are available for all members at a given level.

The MemberProperty represents a single member property for a Member.

The following subroutine, given a Member, iterates through the MemberProperties collection and displays information for each MemberProperty in the collection:

Public Sub ListMemberProperties(ByRef MemberToCheck As Member)

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

        Try
            Dim propToCheck As MemberProperty

            Debug.WriteLine("Found " & _
                MemberToCheck.MemberProperties.Count & _
                " member properties in member:")

            For Each propToCheck In MemberToCheck.MemberProperties
                Debug.WriteLine("Member Property:  " & propToCheck.Name)
                Debug.WriteLine("  Value:        " & _
                    propToCheck.Value)
            Next
        Catch ex As AdomdConnectionException
            ' The connection could not be opened or was disconnected.
            ' This error can occur at any time, if the provider is 
            ' disconnected from the server.
            Debug.WriteLine(ex)
            Throw ex
        Catch ex As AdomdErrorResponseException
            ' A response is received from a provider which indicates an error.
            Debug.WriteLine(ex)
            Throw ex
        Catch ex As AdomdUnknownResponseException
            ' A response has been returned from the provider that 
            ' was not understood.
            Debug.WriteLine(ex)
            Throw ex
        Catch ex As AdomdCacheExpiredException
            ' A cached version of an ADOMD.NET object is no longer valid.
            ' This error is typically raised when reviewing metadata.
            Debug.WriteLine(ex)
            Throw ex
        Catch ex As AdomdException
            ' Any other error raised by ADOMD.NET.
            Debug.WriteLine(ex)
            Throw ex
        Catch ex As Exception
            ' Any other error.
            Debug.WriteLine(ex)
            Throw ex        End Try
    End If
End Sub

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.AnalysisServices.AdomdClient 네임스페이스