Embedded
|
Exception | Condition |
---|---|
ArgumentNullException | Thrown if resourcePath or resourceNamespace is . |
ArgumentOutOfRangeException | Thrown if resourcePath is Empty or if it only consists of periods and/or spaces. |
Both resourcePath and resourceNamespace will be processed to have leading and trailing periods and spaces removed. If resourcePath ends up being empty, an ArgumentOutOfRangeException is thrown. No exception is thrown if resourceNamespace turns out empty.
If the resourcePath is RootNS.SubNS.AppRoot.Folder.File.aspx and the resourceNamespace is RootNS.SubNS.AppRoot, the virtual "path" to the embedded file will be Folder.File.aspx (which will be converted by the EmbeddedResourcePathProvider to ~/Folder/File.aspx).