Udostępnij za pośrednictwem


ResourceType Constructor

Creates an instance of a data service ResourceType.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Sub New ( _
    instanceType As Type, _
    resourceTypeKind As ResourceTypeKind, _
    baseType As ResourceType, _
    namespaceName As String, _
    name As String, _
    isAbstract As Boolean _
)
'Usage
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
)

Parameters

  • instanceType
    Type: System.Type
    CLR type that represents the format inside the WCF Data Services?runtime.
  • namespaceName
    Type: System.String
    Namespace name of the resource type as string.
  • name
    Type: System.String
    Name of the given resource type as string.
  • isAbstract
    Type: System.Boolean
    Boolean value that indicates whether the resource type is an abstract type.

See Also

Reference

ResourceType Class

System.Data.Services.Providers Namespace