Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceType Class

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

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

public class ResourceType

The ResourceType type exposes the following members.

  NameDescription
Public methodResourceTypeCreates an instance of a data service ResourceType.
Top

  NameDescription
Public propertyBaseTypeGets a reference to base resource type, if any.
Public propertyCanReflectOnInstanceTypeGets whether the corresponding instance type represents the CLR type of this entity.
Public propertyCustomStateGets or sets a placeholder to hold custom state information about a resource type that is defined by the developer.
Public propertyETagPropertiesGets the list of properties for this type.
Public propertyFullNameGets the full name of the resource.
Public propertyInstanceTypeReference to the CLR type that this resource represents.
Public propertyIsAbstractGets a Boolean value that indicates whether this is an abstract type.
Public propertyIsMediaLinkEntryGets or sets a Boolean value that is true if the resource type includes a default stream.
Public propertyIsOpenTypeGets whether the resource type has open properties.
Public propertyIsReadOnlyGets a Boolean value that is true if this resource type has been set to read-only.
Public propertyKeyPropertiesGets a list of key properties for this type
Public propertyNameGets the name of the resource type.
Public propertyNamespaceGets the namespace of the resource type.
Public propertyPropertiesGets a list of properties declared on this type that includes only properties defined on the type, not in the base type.
Public propertyPropertiesDeclaredOnThisTypeGets or sets the list of properties declared on this type.
Public propertyResourceTypeKindGets the ResourceTypeKind for the type.
Top

  NameDescription
Public methodAddEntityPropertyMappingAttributeAdds an EntityPropertyMappingAttribute for the resource type.
Public methodAddPropertyAdds the property supplied by the resourceProperty parameter to the type.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberGetCollectionResourceTypeGets a CollectionResourceType representing a collection of the specified itemType items.
Public methodStatic memberGetEntityCollectionResourceTypeGets a EntityCollectionResourceType representing a collection of the specified itemType items.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetPrimitiveResourceTypeGets a resource type that represent a primitive type when given a Type object.
Public methodGetType (Inherited from Object.)
Protected methodLoadPropertiesDeclaredOnThisTypeReturns a list of properties declared by this resource type.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetReadOnlySets the resource type to read-only.
Public methodToString (Inherited from Object.)
Top

Nested types are not supported as resource types.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft