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
Public method ResourceType Creates an instance of a data service ResourceType.

Top

Properties

  Name Description
Public property BaseType Gets a reference to base resource type, if any.
Public property CanReflectOnInstanceType Gets whether the corresponding instance type represents the CLR type of this entity.
Public property CustomState Gets or sets a placeholder to hold custom state information about a resource type that is defined by the developer.
Public property ETagProperties Gets the list of properties for this type.
Public property FullName Gets the full name of the resource.
Public property InstanceType Reference to the CLR type that this resource represents.
Public property IsAbstract Gets a Boolean value that indicates whether this is an abstract type.
Public property IsMediaLinkEntry Gets or sets a Boolean value that is true if the resource type includes a default stream.
Public property IsOpenType Gets whether the resource type has open properties.
Public property IsReadOnly Gets a Boolean value that is true if this resource type has been set to read-only.
Public property KeyProperties Gets a list of key properties for this type
Public property Name Gets the name of the resource type.
Public property Namespace Gets the namespace of the resource type.
Public property Properties Gets a list of properties declared on this type that includes only properties defined on the type, not in the base type.
Public property PropertiesDeclaredOnThisType Gets or sets the list of properties declared on this type.
Public property ResourceTypeKind Gets the ResourceTypeKind for the type.

Top

Methods

  Name Description
Public method AddEntityPropertyMappingAttribute Adds an EntityPropertyMappingAttribute for the resource type.
Public method AddProperty Adds the property supplied by the resourceProperty parameter to the type.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member GetCollectionResourceType Gets a CollectionResourceType representing a collection of the specified itemType items.
Public methodStatic member GetEntityCollectionResourceType Gets a EntityCollectionResourceType representing a collection of the specified itemType items.
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetPrimitiveResourceType Gets a resource type that represent a primitive type when given a Type object.
Public method GetType (Inherited from Object.)
Protected method LoadPropertiesDeclaredOnThisType Returns a list of properties declared by this resource type.
Protected method MemberwiseClone (Inherited from Object.)
Public method SetReadOnly Sets the resource type to read-only.
Public method 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.

See Also

Reference

System.Data.Services.Providers Namespace