共用方式為


EnumProperty 建構函式

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Creates a new instance of the EnumProperty class.

命名空間:  Microsoft.ReportingServices.RdlObjectModel
組件:  Microsoft.ReportingServices.Designer.Controls (在 Microsoft.ReportingServices.Designer.Controls.dll 中)

語法

'宣告
Public Sub New ( _
    name As String, _
    enumType As Type, _
    defaultValue As Object, _
    validValues As IList(Of Integer) _
)
'用途
Dim name As String 
Dim enumType As Type 
Dim defaultValue As Object 
Dim validValues As IList(Of Integer)

Dim instance As New EnumProperty(name, enumType, _
    defaultValue, validValues)
public EnumProperty(
    string name,
    Type enumType,
    Object defaultValue,
    IList<int> validValues
)
public:
EnumProperty(
    String^ name, 
    Type^ enumType, 
    Object^ defaultValue, 
    IList<int>^ validValues
)
new : 
        name:string * 
        enumType:Type * 
        defaultValue:Object * 
        validValues:IList<int> -> EnumProperty
public function EnumProperty(
    name : String, 
    enumType : Type, 
    defaultValue : Object, 
    validValues : IList<int>
)

參數

  • name
    型別:System.String
    The name of the enumeration property.

請參閱

參考

EnumProperty 類別

Microsoft.ReportingServices.RdlObjectModel 命名空間