共用方式為


ResourceType 建構函式

建立資料服務 ResourceType 的執行個體。

命名空間:  System.Data.Services.Providers
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Sub New ( _
    instanceType As Type, _
    resourceTypeKind As ResourceTypeKind, _
    baseType As ResourceType, _
    namespaceName As String, _
    name As String, _
    isAbstract As Boolean _
)
'用途
Dim instanceType As Type
Dim resourceTypeKind As ResourceTypeKind
Dim baseType As ResourceType
Dim namespaceName As String
Dim name As String
Dim isAbstract As Boolean

Dim instance As New ResourceType(instanceType, _
    resourceTypeKind, baseType, namespaceName, _
    name, isAbstract)
public ResourceType(
    Type instanceType,
    ResourceTypeKind resourceTypeKind,
    ResourceType baseType,
    string namespaceName,
    string name,
    bool isAbstract
)
public:
ResourceType(
    Type^ instanceType, 
    ResourceTypeKind resourceTypeKind, 
    ResourceType^ baseType, 
    String^ namespaceName, 
    String^ name, 
    bool isAbstract
)
new : 
        instanceType:Type * 
        resourceTypeKind:ResourceTypeKind * 
        baseType:ResourceType * 
        namespaceName:string * 
        name:string * 
        isAbstract:bool -> ResourceType
public function ResourceType(
    instanceType : Type, 
    resourceTypeKind : ResourceTypeKind, 
    baseType : ResourceType, 
    namespaceName : String, 
    name : String, 
    isAbstract : boolean
)

參數

  • instanceType
    型別:System.Type
    表示 WCF Data Services 執行階段內部格式的 CLR 類型。
  • namespaceName
    型別:System.String
    當做字串之資源類型的命名空間名稱。
  • name
    型別:System.String
    當做字串之給定資源類型的名稱。
  • isAbstract
    型別:System.Boolean
    指出資源類型是否為抽象類型的布林值。

請參閱

參考

ResourceType 類別

System.Data.Services.Providers 命名空間