WebManagementServiceException.ResourceName Property
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.
Gets the name of the resource that is used to show a localized error message.
public:
property System::String ^ ResourceName { System::String ^ get(); };
public string ResourceName { get; }
member this.ResourceName : string
Public ReadOnly Property ResourceName As String
Property Value
The name of the resource.
Remarks
The value of the ResourceName property is set when you call the Microsoft.Web.Management.Server.ModuleService.RaiseException(String, String) method overload. This overload creates a new WebManagementServiceException object by using the specified ResourceName value and then throws the exception. Typically, you do not have to access ResourceName directly; instead, you can call the Microsoft.Web.Management.Client.Win32.ModulePage.DisplayErrorMessage or Microsoft.Web.Management.Client.ModuleServiceProxy.GetErrorInformation method. These methods extract the correct localized error message from the resource manager provider, or from the resource manager if the exception is from the .NET Framework.