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。) | |
Finalize | (繼承自 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。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | (繼承自 Object。) |
上層
備註
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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。