示例#1
0
 /// <summary>
 /// Creates a file with the given content and type and returns information about it.
 /// </summary>
 public static BrowserFile CreateFile(Context ctx, string data, string name, string contentType)
 {
     return(GenericHelper.CallJs <BrowserFile>(ctx, JsResource.createFile, data, name, contentType));
 }
示例#2
0
 /// <summary>
 /// Creates an URL object from a file specified by id and returns the URL.
 /// </summary>
 public static string CreateUrlObject(Context ctx, int id)
 {
     return(GenericHelper.CallJs <string>(ctx, JsResource.createUrlObject, id));
 }