Table of Contents

Class FieldThumbnailValue

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Represents a location field value

public sealed class FieldThumbnailValue : FieldValue, IFieldThumbnailValue, IFieldValue
Inheritance
FieldThumbnailValue
Implements
Inherited Members

Constructors

FieldThumbnailValue()

Default constructor

public FieldThumbnailValue()

Properties

FileName

Filename identifiying this image

public string FileName { get; }

Property Value

string

ServerRelativeUrl

Server relative URL to access this image

public string ServerRelativeUrl { get; }

Property Value

string

ServerUrl

Server URL

public string ServerUrl { get; }

Property Value

string

ThumbnailRenderer

Thumbnail renderer

public object ThumbnailRenderer { get; }

Property Value

object

Methods

UploadImageAsync(IListItem, string, Stream)

Uploads an image to a modern image field for the current list item

public Task UploadImageAsync(IListItem item, string name, Stream content)

Parameters

item IListItem

List item to update

name string

Image name

content Stream

The content of the file.

Returns

Task