ResourceType Class
Represents a data service primitive, complex, or entity type.
Inheritance Hierarchy
System.Object
System.Data.Services.Providers.ResourceType
System.Data.Services.Providers.CollectionResourceType
System.Data.Services.Providers.EntityCollectionResourceType
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Class ResourceType
'Usage
Dim instance As ResourceType
public class ResourceType
public ref class ResourceType
type ResourceType = class end
public class ResourceType
The ResourceType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ResourceType | Creates an instance of a data service ResourceType. |
Top
Properties
Name | Description | |
---|---|---|
BaseType | Gets a reference to base resource type, if any. | |
CanReflectOnInstanceType | Gets whether the corresponding instance type represents the CLR type of this entity. | |
CustomState | Gets or sets a placeholder to hold custom state information about a resource type that is defined by the developer. | |
ETagProperties | Gets the list of properties for this type. | |
FullName | Gets the full name of the resource. | |
InstanceType | Reference to the CLR type that this resource represents. | |
IsAbstract | Gets a Boolean value that indicates whether this is an abstract type. | |
IsMediaLinkEntry | Gets or sets a Boolean value that is true if the resource type includes a default stream. | |
IsOpenType | Gets whether the resource type has open properties. | |
IsReadOnly | Gets a Boolean value that is true if this resource type has been set to read-only. | |
KeyProperties | Gets a list of key properties for this type | |
Name | Gets the name of the resource type. | |
Namespace | Gets the namespace of the resource type. | |
Properties | Gets a list of properties declared on this type that includes only properties defined on the type, not in the base type. | |
PropertiesDeclaredOnThisType | Gets or sets the list of properties declared on this type. | |
ResourceTypeKind | Gets the ResourceTypeKind for the type. |
Top
Methods
Name | Description | |
---|---|---|
AddEntityPropertyMappingAttribute | Adds an EntityPropertyMappingAttribute for the resource type. | |
AddProperty | Adds the property supplied by the resourceProperty parameter to the type. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetCollectionResourceType | Gets a CollectionResourceType representing a collection of the specified itemType items. | |
GetEntityCollectionResourceType | Gets a EntityCollectionResourceType representing a collection of the specified itemType items. | |
GetHashCode | (Inherited from Object.) | |
GetPrimitiveResourceType | Gets a resource type that represent a primitive type when given a Type object. | |
GetType | (Inherited from Object.) | |
LoadPropertiesDeclaredOnThisType | Returns a list of properties declared by this resource type. | |
MemberwiseClone | (Inherited from Object.) | |
SetReadOnly | Sets the resource type to read-only. | |
ToString | (Inherited from Object.) |
Top
Remarks
Nested types are not supported as resource types.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.