Tuple 클래스
Represents an ordered collection of members from different hierarchies.
상속 계층
System. . :: . .Object
Microsoft.AnalysisServices.AdomdClient..::..Tuple
네임스페이스: Microsoft.AnalysisServices.AdomdClient
어셈블리: Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.dll)
구문
‘선언
Public NotInheritable Class Tuple
‘사용 방법
Dim instance As Tuple
public sealed class Tuple
public ref class Tuple sealed
[<SealedAttribute>]
type Tuple = class end
public final class Tuple
Tuple 유형에서 다음 멤버를 표시합니다.
속성
이름 | 설명 | |
---|---|---|
![]() |
Members | Gets an instance of the MemberCollection class from the Tuple. |
![]() |
TupleOrdinal | Gets the ordinal position of the Tuple. |
맨 위로 이동
메서드
이름 | 설명 | |
---|---|---|
![]() |
Equals | Determines whether two instances of System..::..Object are equal. (Object. . :: . .Equals(Object)을(를) 재정의함) |
![]() |
Finalize | (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에서 상속됨) |
![]() |
MemberwiseClone | (Object에서 상속됨) |
![]() |
ToString | (Object에서 상속됨) |
맨 위로 이동
연산자
이름 | 설명 | |
---|---|---|
![]() ![]() |
Equality | Determines whether two specified instances of Tuple are equal. |
![]() ![]() |
Inequality | Determines whether two specified instances of Tuple are not equal. |
맨 위로 이동
주의
A tuple consists of an ordered collection of members.
A tuple cannot contain more than one member from any single hierarchy.
In ADOMD.NET, a Tuple is used to represent a tuple by encapsulating the collection of Member objects that define the tuple. Tuple objects can be referenced only through the Tuples property of a Set.
예
The following function, given a Tuple, examines the object and returns a Multidimensional Expressions (MDX) string representation of the tuple:
Public Function GetTupleString(ByRef TupleToConvert As Tuple) As String
If TupleToConvert Is Nothing Then
Throw New System.ArgumentNullException("TupleToConvert")
Else
Dim tupleCount As Integer = TupleToConvert.Members.Count
Dim tupleIndex As Integer = 0
If tupleCount = 0 Then
' An empty tuple.
Return "()"
Else
' Iterate through each member in the Members collection,
' adding the value of the UniqueName property to a
' string.
' Because a tuple can represent many members, this
' example uses a StringBuilder object to improve
' string handling performance.
Dim tupleString As New _
System.Text.StringBuilder(15 * tupleCount)
' Tuples are framed with parentheses, with each member
' within a tuple separated by a comma.
tupleString.Append("(")
For tupleIndex = 0 To tupleCount - 1
tupleString.Append( _
TupleToConvert.Members(tupleIndex).UniqueName)
If tupleIndex < (tupleCount - 1) Then
tupleString.Append(", ")
End If
Next
tupleString.Append(")")
Return tupleString.ToString
End If
End If
End Function
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.