Volume Control
Application-specific hotkeys for Windows
|
Represents errors that occur while trying to access an embedded resource file. More...
Public Member Functions | |
EmbeddedResourceNotFoundException (string resourceName, Assembly sourceAssembly, string? message, Exception? innerException) | |
Creates a new EmbeddedResourceNotFoundException instance with the specified message and innerException . More... | |
EmbeddedResourceNotFoundException (string resourceName, Assembly sourceAssembly, string? message) | |
Creates a new EmbeddedResourceNotFoundException instance with the specified message . More... | |
EmbeddedResourceNotFoundException (string resourceName, Assembly sourceAssembly, Exception? innerException) | |
Creates a new EmbeddedResourceNotFoundException instance with the specified innerException and a default message generated from the specified resourceName and sourceAssembly . More... | |
EmbeddedResourceNotFoundException (string resourceName, Assembly sourceAssembly) | |
Creates a new EmbeddedResourceNotFoundException instance with a default message generated from the specified resourceName and sourceAssembly . More... | |
Static Protected Member Functions | |
static ? string | FindActualResourceName (Assembly assembly, string resourceName, StringComparison stringComparison=StringComparison.OrdinalIgnoreCase) |
Searches the specified assembly for an embedded resource with a similar name to resourceName . More... | |
Properties | |
string | ResourceName [get] |
Gets the name of the missing resource file. More... | |
Assembly | SourceAssembly [get] |
Gets the Assembly that was accessed. More... | |
Represents errors that occur while trying to access an embedded resource file.
VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException | ( | string | resourceName, |
Assembly | sourceAssembly, | ||
string? | message, | ||
Exception? | innerException | ||
) |
Creates a new EmbeddedResourceNotFoundException instance with the specified message and innerException .
resourceName | The name of the resource that wasn't found. |
sourceAssembly | The assembly that the resource wasn't found in. |
message | The error message that explains the reason for the exception. |
innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
References VolumeControl.Core.EmbeddedResourceNotFoundException.ResourceName, and VolumeControl.Core.EmbeddedResourceNotFoundException.SourceAssembly.
VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException | ( | string | resourceName, |
Assembly | sourceAssembly, | ||
string? | message | ||
) |
Creates a new EmbeddedResourceNotFoundException instance with the specified message .
resourceName | The name of the resource that wasn't found. |
sourceAssembly | The assembly that the resource wasn't found in. |
message | The error message that explains the reason for the exception. |
References VolumeControl.Core.EmbeddedResourceNotFoundException.ResourceName, and VolumeControl.Core.EmbeddedResourceNotFoundException.SourceAssembly.
VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException | ( | string | resourceName, |
Assembly | sourceAssembly, | ||
Exception? | innerException | ||
) |
Creates a new EmbeddedResourceNotFoundException instance with the specified innerException and a default message generated from the specified resourceName and sourceAssembly .
resourceName | The name of the resource that wasn't found. |
sourceAssembly | The assembly that the resource wasn't found in. |
innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
References VolumeControl.Core.EmbeddedResourceNotFoundException.ResourceName, and VolumeControl.Core.EmbeddedResourceNotFoundException.SourceAssembly.
VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException | ( | string | resourceName, |
Assembly | sourceAssembly | ||
) |
Creates a new EmbeddedResourceNotFoundException instance with a default message generated from the specified resourceName and sourceAssembly .
resourceName | The name of the resource that wasn't found. |
sourceAssembly | The assembly that the resource wasn't found in. |
References VolumeControl.Core.EmbeddedResourceNotFoundException.ResourceName, and VolumeControl.Core.EmbeddedResourceNotFoundException.SourceAssembly.
|
staticprotected |
Searches the specified assembly for an embedded resource with a similar name to resourceName .
If the specified resourceName is missing namespace qualifiers, this method will find the correct full name. When this method returns null
, it indicates that the resourceName may be spelled wrong, the resource is in a different assembly, or the Build Action for the file isn't set to Embedded resource
.
assembly | The Assembly to search. |
resourceName | The given name of the resource file. |
stringComparison | The comparison type to use when comparing strings. |
null
.
|
get |
Gets the name of the missing resource file.
Referenced by VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException().
|
get |
Gets the Assembly that was accessed.
Referenced by VolumeControl.Core.EmbeddedResourceNotFoundException.EmbeddedResourceNotFoundException().