Partager via


ReadResourceActivity.Resource Property

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

'Usage
Dim instance As ReadResourceActivity
Dim value As ResourceType

value = instance.Resource

instance.Resource = value

Syntax

'Declaration
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
<CategoryAttribute("Parameters")> _
<BrowsableAttribute(True)> _
Public Property Resource As ResourceType
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)] 
[CategoryAttribute("Parameters")] 
[BrowsableAttribute(true)] 
public ResourceType Resource { get; set; }
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Visible)] 
[CategoryAttribute(L"Parameters")] 
[BrowsableAttribute(true)] 
public:
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.

Example

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

// 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

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

Change History

See Also

Reference

ReadResourceActivity Class
ReadResourceActivity Members
Microsoft.ResourceManagement.Workflow.Activities Namespace
ReadResourceActivity