Class BlobResolver
Resolves a property of type Blob on an IContentData instance.
Inheritance
System.Object
BlobResolver
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class BlobResolver : Object, 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 |