Udostępnij za pośrednictwem


Partition.Slice Property

Gets or sets the slice that defines the partition content.

Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntax

'Declaration
<ReadOnlyAttribute(False)> _
<XmlElementAttribute(IsNullable:=False)> _
<EditorAttribute("Microsoft.AnalysisServices.Design.MDXUITypeEditor, Microsoft.AnalysisServices.Design", GetType(UITypeEditor))> _
Public Property Slice As String
[ReadOnlyAttribute(false)] 
[XmlElementAttribute(IsNullable=false)] 
[EditorAttribute("Microsoft.AnalysisServices.Design.MDXUITypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
public string Slice { get; set; }
[ReadOnlyAttribute(false)] 
[XmlElementAttribute(IsNullable=false)] 
[EditorAttribute(L"Microsoft.AnalysisServices.Design.MDXUITypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
public:
property String^ Slice {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Slice ()

/** @property */
public void set_Slice (String value)
public function get Slice () : String

public function set Slice (value : String)

Property Value

A String value.

Remarks

The partition slice is an MDX expression that evaluates to a tuple or a set that will limit the cells that will be part of the parent Partition. It has the same restrictions as the StrToSet MDX function with the CONSTRAINED parameter. That is, it can use dimension, hierarchy, level and member names, keys, unique names, etc., but no MDX functions.

The intersection of any two slices should be empty and the union of all slices should be the entire cube space for results to be accurate. If the intersection of two slices is not the empty set, then duplicate information could be observed in results.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Partition Class
Partition Members
Microsoft.AnalysisServices Namespace