Redigera

Dela via


ResourceType Class

Definition

Represents a data service primitive, complex, or entity type.

public ref class ResourceType
public class ResourceType
type ResourceType = class
Public Class ResourceType
Inheritance
ResourceType

Remarks

Nested types are not supported as resource types.

Constructors

ResourceType(Type, ResourceTypeKind, ResourceType, String, String, Boolean)

Creates an instance of a data service ResourceType.

Properties

BaseType

Gets a reference to base resource type, if any.

CanReflectOnInstanceType

Gets a value that indicates 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 a value that indicates 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 of this type that includes only properties defined on the type, not in the base type.

PropertiesDeclaredOnThisType

List of properties declared on this type.

ResourceTypeKind

Gets the ResourceTypeKind for the type.

Methods

AddEntityPropertyMappingAttribute(EntityPropertyMappingAttribute)

Adds an EntityPropertyMappingAttribute for the resource type.

AddProperty(ResourceProperty)

Adds the property supplied by the resourceProperty parameter to the type.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPrimitiveResourceType(Type)

Gets a resource type that represent a primitive type when given a Type object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadPropertiesDeclaredOnThisType()

Returns a list of properties declared by this resource type.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetReadOnly()

Sets the resource type to read-only.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to