Create(string resourceName, IResourceResolutionContext context) Method

Creates the SecureResource associated with the resourceName and specified context

Syntax

public static SecureResource Create(string resourceName, IResourceResolutionContext context)

Parameters

resourceName
Type: string
context
Type: IResourceResolutionContext

Returns

Located resource

Exceptions

System.ArgumentNullException

resourceName is null (Nothing in Visual Basic) or empty

System.ArgumentOutOfRangeException

resourceName is invalid

System.InvalidOperationException

resource not found

Remarks

resourceName maybe prefixed with "global::", and in this case the applicationId paramater will be treated as null (Nothing in Visual Basic)