Class BlobResolver
Resolves a property of type Blob on an IContentData instance.
Inheritance
System.Object
BlobResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class BlobResolver : IBlobResolver, IBlobAssigner
Constructors
BlobResolver()
Declaration
public BlobResolver()
Methods
ResolveProperty(IContentData, String)
Resolves a blob property with name propertyName
(case insensitive) from content
.
Declaration
public virtual BlobResolveResult ResolveProperty(IContentData content, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
IContentData | content | The content. |
System.String | propertyName | Name of the property. |
Returns
Type | Description |
---|---|
BlobResolveResult |
Remarks
If property is not found on instance null is returned.
SetBlob(Blob, IContentData, String)
Sets the blob property named propertyName
on content
with value blob
.
Declaration
public virtual void SetBlob(Blob blob, IContentData content, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Blob | blob | The BLOB. |
IContentData | content | The content. |
System.String | propertyName | Name of the property. |
Remarks
If blob property is not found System.InvalidOperationException is thrown.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException |