Export (0) Print
Expand All

ResourceType Class

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

System.Object
  System.Data.Services.Providers.ResourceType

Namespace:  System.Data.Services.Providers
Assembly:  System.Data.Services (in System.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 propertyCanReflectOnInstanceTypeGet 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 of this type that includes only properties defined on the type, not in the base type.
Public propertyPropertiesDeclaredOnThisTypeList 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(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetPrimitiveResourceTypeGets a resource type that represent a primitive type when given a Type object.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodLoadPropertiesDeclaredOnThisTypeReturns a list of properties declared by this resource type.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetReadOnlySets the resource type to read-only.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft