次の方法で共有


Resource object

The Resource object is an object automatically created by the Generic Script resource DLL for each instance of a scripted resource. Your script can use the methods and properties of the Resource object to identify the resource, log information about the resource, and manipulate private properties.

Methods

The Resource object has these methods.

Method Description
AddProperty Adds a new private property to the resource instance.
LogInformation Writes a string to the cluster event log.
Name Returns the name of the resource instance.
RemoveProperty Removes a private property from this resource instance.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise