Represents an in-memory representation of the resource that is being read by the activity.
Namespace: Microsoft.ResourceManagement.Workflow.Activities
Assembly: Microsoft.ResourceManagement (in microsoft.resourcemanagement.dll)


Visual Basic
Dim instance As ReadResourceActivity
Dim value As ResourceType

value = instance.Resource

instance.Resource = value


Visual Basic
<BrowsableAttribute(True)> _
<CategoryAttribute("Parameters")> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
Public Property Resource As ResourceType
public ResourceType Resource { get; set; }
property ResourceType^ Resource {
		ResourceType^ get ();
		void set (ResourceType^ value);
/** @property */
public ResourceType get_Resource ()

/** @property */
public void set_Resource (ResourceType value)
public function get Resource () : ResourceType

public function set Resource (value : ResourceType)

Property Value

A ResourceType value that represents the resource that is accessed by the ReadResourceActivity activity.


The following example uses the Resource property that is populated after you execute the activity.

C#  Copy Code
// Retrieve the Resource property and store in a variable of type ResourceType.
ResourceType user = readResourceActivity1.Resource;

// Attributes bound to the FIM Resource type are available on the
// ResourceType class as properties.
string displayName = resource.DisplayName;

// Attributes bound to the specific resource type retrieved can be
// accessed by specifying the attribute name.
string accountName = (string) ResourceType["AccountName"];


This property is intended to be used as an output property.

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.


Target Platforms

Windows 2008 x64 Edition

Change History

See Also