IResourceSupplier Interface

Definition

Objects implementing this interface can be used by ErrorDetails(IResourceSupplier, String, String, Object[])

public interface class IResourceSupplier
public interface IResourceSupplier
type IResourceSupplier = interface
Public Interface IResourceSupplier
Derived

Remarks

CmdletProvider implements this interface. PSSnapins can implement IResourceSupplier on their custom classes, but the only purpose would be to permit the custom class to be used in the ErrorDetails(IResourceSupplier, String, String, Object[]). constructor.

ErrorDetails contains special constructor ErrorDetails(IResourceSupplier, String, String, Object[]) reducing the steps which localizable code generally has to duplicate when it generates a localizable string. This variant is preferred over ErrorDetails(String), since the improved information about the error may help enable future scenarios.

Methods

GetResourceString(String, String)

Gets the error message template string corresponding to baseName and resourceId.

Applies to