Class ResourceLoadingArgs
Namespace: Aspose.Words.Loading
Assembly: Aspose.Words.dll (25.4.0)
Provides data for the Aspose.Words.Loading.IResourceLoadingCallback.ResourceLoading(Aspose.Words.Loading.ResourceLoadingArgs) method.
public class ResourceLoadingArgs
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
OriginalUri
Original URI of the resource as specified in imported document.
public string OriginalUri { get; }
Property Value
ResourceType
Type of resource.
public ResourceType ResourceType { get; }
Property Value
Uri
URI of the resource which is used for downloading if Aspose.Words.Loading.IResourceLoadingCallback.ResourceLoading(Aspose.Words.Loading.ResourceLoadingArgs) returns Aspose.Words.Loading.ResourceLoadingAction.Default.
Initially it's set to absolute URI of the resource, but user can redefine it to any value.
public string Uri { get; set; }
Property Value
Methods
SetData(byte[])
Sets user provided data of the resource which is used if Aspose.Words.Loading.IResourceLoadingCallback.ResourceLoading(Aspose.Words.Loading.ResourceLoadingArgs) returns Aspose.Words.Loading.ResourceLoadingAction.UserProvided.
public void SetData(byte[] data)
Parameters
data
byte
[]