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
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);
}
|
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
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