Partager via


Resource::Name method

Returns the name of the resource instance. Note that you cannot use this method to set the name of the resource.

Syntax

string Name();

Parameters

This method has no parameters.

Return value

The name of the resource.

Remarks

Resource names are not case sensitive. A resource name must be unique within the cluster. The name is set when the resource is created and can be changed using the SetClusterResourceName function.

Examples

See the Scripted Resource Example.

Requirements

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

See also

Resource