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)

Usage

Visual Basic
Dim instance As ReadResourceActivity
Dim value As ResourceType

value = instance.Resource

instance.Resource = value

Syntax

Visual Basic
<BrowsableAttribute(True)> _
<CategoryAttribute("Parameters")> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
Public Property Resource As ResourceType
C#
[BrowsableAttribute(true)] 
[CategoryAttribute("Parameters")] 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)] 
public ResourceType Resource { get; set; }
C++
[BrowsableAttribute(true)] 
[CategoryAttribute(L"Parameters")] 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Visible)] 
public:
property ResourceType^ Resource {
		ResourceType^ get ();
		void set (ResourceType^ value);
}
J#
/** @property */
public ResourceType get_Resource ()

/** @property */
public void set_Resource (ResourceType value)
JScript
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.

Example

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"];

Remarks

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.

Platforms

Target Platforms

Windows 2008 x64 Edition

Change History

See Also