ResourceProperty Class

Provides a type to describe a property on a resource.

Inheritance Hierarchy

System.Object
  System.Data.Services.Providers.ResourceProperty

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

Syntax

'Declaration
Public Class ResourceProperty
'Usage
Dim instance As ResourceProperty
public class ResourceProperty
public ref class ResourceProperty
type ResourceProperty =  class end
public class ResourceProperty

The ResourceProperty type exposes the following members.

Constructors

  Name Description
Public method ResourceProperty Initializes a new ResourceProperty for an open property.

Top

Properties

  Name Description
Public property CanReflectOnInstanceTypeProperty Gets a value that indicates whether this property can be accessed through reflection on the declaring resource instance type.
Public property CustomState Gets or sets custom state information about a resource property that is defined by the developer.
Public property IsReadOnly Gets a Boolean value that indicates whether the property is read-only.
Public property Kind Gets the kind of the resource property with regard to the resource.
Public property MimeType Gets or sets MIME type for the property.
Public property Name Gets the name of the resource property.
Public property ResourceType Gets the type of the resource property.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetReadOnly Sets the resource property to read-only.
Public method ToString (Inherited from Object.)

Top

Remarks

The following Unicode characters are allowed in XML names but not in identifiers in EDM:

  1. U+00B7 '•'

  2. U+0387 '·'

  3. U+06DE '۞'

  4. U+212E '℮'

If your property names can contain these characters, make sure that they are escaped properly in your provider implementation. The EncodeName(String) method will not properly escape these invalid EDM characters."

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