Stores the definition of a function. In the current version of FIM, the user cannot create a customized Function or update an existing Function assembly.

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="Function">
	<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:element minOccurs="1" name="Assembly">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="1" name="FunctionName">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="1" name="FunctionParameters">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="1" name="Namespace">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="1" name="ReturnType">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	</xs:sequence>
  </xs:complexType>
</xs:schema>

Properties

The following table lists the properties of the Function resource:

Property Description

Assembly

Required String property that indicates the filename of the assembly that contains the function definition. The String length must be no more than 448 characters.

FunctionName

Required String property that represents the name of the function. It is recommended to keep this value unique among all Function resources. The String length must be no more than 448 characters.

FunctionParameters

Optional multi-valued String property. Each value represents a function parameter. The String length must be no more than 448 characters.

Namespace

Required String property that represents the Namespace of the function. The String length must be no more than 448 characters.

ReturnType

Required String property that indicates the function return type.

Parent Elements

None

Remarks

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.

Example

Description

The following is an example of an instance of a Function resource. It assumes that a custom function named “MyCounterFunction” has been created.

Code

  Copy Code
<rm:Function
  // elements inherited from the “Resource” resource//
  // <- … ->
  <FunctionParameters>xs:integer</FunctionParameters>
  <FunctionParameters>xs:boolean</FunctionParameters>
  <Name>MyCounterFunction</Name>
  <Namespace>MyNamespace.Math</Namespace>
  <Assembly>C://ServerDlls/MathHelperFunctions.dll</Assembly>
  <ReturnType>xs:integer</ReturnType>
</rm:Function>

See Also