IResourceSupplier Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Objects implementing this interface can be used by ErrorDetails(IResourceSupplier, String, String, Object[])
public interface class IResourceSupplier
public interface IResourceSupplier
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IResourceSupplier
type IResourceSupplier = interface
[<System.Runtime.CompilerServices.NullableContext(1)>]
type IResourceSupplier = interface
Public Interface IResourceSupplier
- Derived
- Attributes
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
|