EnumProperty 建構
此 API 支援 .NET Framework 結構,但並不是針對直接從程式碼使用而設計。
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 enum property.
- enumType
型別:System. . :: . .Type
The enumeration type.
- defaultValue
型別:System. . :: . .Object
The default value.
- validValues
型別:System.Collections.Generic. . :: . .IList< (Of < ( <'Int32> ) > ) >
The valid values.