Resource is base type for FIM resources. The Resource type should never be instantiated. All of the resource types in FIM have the same attribute bindings as the Resource type by default. For more information, see Forefront Identity Manager Schema.

Schema

  Copy Code
<?xml version="1.0"?><xs:schema xmlns:rm="http://schemas.microsoft.com/2006/11/ResourceManagement" targetNamespace="http://schemas.microsoft.com/2006/11/ResourceManagement" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="Resource">
	<xs:sequence>
	<xs:element minOccurs="0" name="ObjectID" type="rm:ReferenceType" />
	<xs:element minOccurs="1" name="ObjectType">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="1" name="CreatedTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Creator" type="rm:ReferenceType" />
	<xs:element minOccurs="0" name="MVObjectID">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="DeletedTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Description">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="DetectedRulesList" type="rm:ReferenceCollectionType" />
	<xs:element minOccurs="0" name="DisplayName">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="ExpectedRulesList" type="rm:ReferenceCollectionType" />
	<xs:element minOccurs="0" name="ExpirationTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Locale">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="ResourceTime" type="xs:dateTime" />
	</xs:sequence>
  </xs:complexType>
</xs:schema>

Properties

The following table lists the properties of Resource.

Property Description

CreatedTime

Required dateTime property. Indicates when the resource was created. This property is a system property; user cannot update this value.

Creator

Optional property. Reference to a resource that created the resource. This property is a system property; user cannot update this value.

DeletedTime

(This property is not used.)

Description

Optional String property. Description for the resource instance. The String length must be no more than 448 characters.

DetectedRulesList

Optional multi-valued Reference property. Each DetectedRulesList value indicates the current state of the resource in a connected system (a system connected to FIM by means of a management agent). This property is a system property; user cannot update this value.

DisplayName

Optional String property. Resource display name. The String length must be no more than 448 characters.

ExpectedRulesList

Optional multi-valued property. Reference to an ExpectedRuleEntry resource. This property is a system property; user cannot update this value.

ExpirationTime

Optional dateTime property. Indicates when the resource instance should expire. It is up to administrators to define management policies associated with the expiration of groups and other resources.

Locale

Optional String property. This property is used to indicate what language the resource is in. When this is set to a certain language, FIM will return localizable properties on the resource in that language, if available. If the property is not available in the language represented by the Locale value, the default English value of the property will be returned. See SupportedLocaleInformation. The String length must be no more than 448 characters.

MVObjectID

Indicates the unique identifier associated with this resource in the FIM Synchronization Service database (metaverse).

ObjectID

Optional Reference property. Unique identifier for the resource. This property is a system property; user cannot update this value.

ObjectType

Required String property. Resource type of a given instance. This property is a system property; user cannot update this value. This resource is not exposed as a property on the wire.

ResourceTime

Optional DateTime property. The date and time of a representation of a resource.

Parent Elements

None

Example

Description

The following is an example of a schema that defines a resource that extends Resource. It defines a new object “TestObjectType” by adding a string called “TestString”.

Code

[XML]

  Copy Code
<xsd:schema 
  xmlns:rm="http://schemas.microsoft.com/2006/11/ResourceManagement" 
  elementFormDefault="qualified"
  targetNamespace="http://schemas.microsoft.com/2006/11/ResourceManagement"
  xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsd:element 
  name="TestString" 
  id="TestString" 
  type="rm:String" />
<xsd:complexType name="TestObjectType">
	<xs:complexContent>
	<xs:extension base="rm:ResourceType">
		<xs:sequence>
		<xs:element minOccurs="1" id="TestString"/>
		<xs:sequence>
		</xs:sequence>
	</xs:extension>
	</xs:complexContent>
  </xs:complexType>
</xs:schema>

An instance of the above TestObjectType

  Copy Code
<rm:TestObjectType>
  <rm:Creator>
	1C56ECCB-9215-4f3e-8F42-5DE3018F679E
  </rm:Creator>
  <rm:DisplayName>
	Some Readable Name
  </rm:DisplayName>
  <rm:CreatedTime>
	2007-11-01T11:30:59
  </rm:CreatedTime>
  <rm:ExpirationTime>
	2007-11-03T11:30:59
  </rm:ExpirationTime>
  <rm:ObjectID>
	1C56ECCB-9215-4f3e-8F42-5DE3018F679E
  </rm:ObjectID>
  <rm:TestString>
	Hello
  </rm:TestString>
</rm:TestObjectType>

See Also