다음을 통해 공유


CellPropertyCollection 클래스

Contains a collection of CellProperty objects contained by a Cell.

상속 계층

System.Object
  Microsoft.AnalysisServices.AdomdClient.CellPropertyCollection

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

구문

‘선언
Public NotInheritable Class CellPropertyCollection _
    Implements ICollection, IEnumerable
‘사용 방법
Dim instance As CellPropertyCollection
public sealed class CellPropertyCollection : ICollection, 
    IEnumerable
public ref class CellPropertyCollection sealed : ICollection, 
    IEnumerable
[<SealedAttribute>]
type CellPropertyCollection =  
    class 
        interface ICollection 
        interface IEnumerable 
    end
public final class CellPropertyCollection implements ICollection, IEnumerable

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

속성

  이름 설명
공용 속성 Count Gets the number of CellProperty objects in the collection.
공용 속성 IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
공용 속성 Item[Int32] Gets the specified CellProperty from the collection by its index. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.
공용 속성 Item[String] Gets the specified CellProperty from the collection by its name. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.
공용 속성 SyncRoot Gets an Object that can be used to synchronize access to the collection.

맨 위로 이동

메서드

  이름 설명
공용 메서드 CopyTo Copies the elements of the collection to the specified array.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 Find Gets the specified CellProperty from the collection by its name.
공용 메서드 GetEnumerator Gets an enumerator for iterating through the collection.
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 ICollection.CopyTo Copies the elements of the CellPropertyCollection to an array, starting at a particular array index.
명시적 인터페이스 구현전용 메서드 IEnumerable.GetEnumerator Gets an enumerator for iterating through the collection.

맨 위로 이동

주의

The CellPropertyCollection is populated when a Cell is created. Each cell in a cellset can have zero or more intrinsic or custom cell properties associated with it, represented by CellProperty objects maintained by the CellPropertyCollection collection.

The following subroutine iterates through the CellPropertyCollection collection of a specified Cell.

Public Sub ListCellPropertyCollection(ByRef CellToCheck As Cell)
    'Assumes CellToCheck is not null.
    Dim cellProperty As CellProperty

    Debug.WriteLine("Found " & CellToCheck.CellProperties.Count & _
        " cell properties in cell:")

    For Each cellProperty In CellToCheck.CellProperties
        Debug.WriteLine("  Name:  " & cellProperty.Name)
        Debug.WriteLine(" Value:  " & cellProperty.Value)
    Next
End Sub

스레드 보안

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

참고 항목

참조

Microsoft.AnalysisServices.AdomdClient 네임스페이스