Interface IPropertyValues
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a PropertyValues object
public interface IPropertyValues : IDataModel<IPropertyValues>, IDataModelParent, IDataModelWithContext, ISupportModules<IPropertyValues>, IExpandoDataModel
- Inherited Members
- Extension Methods
Methods
GetBoolean(string, bool)
Get boolean typed property bag value. If does not contain, returns given default value.
bool GetBoolean(string key, bool defaultValue)
Parameters
keystringKey of the property bag entry to return
defaultValueboolDefault value of the property bag
Returns
- bool
Value of the property bag entry as boolean
GetInteger(string, int)
Get int typed property bag value. If does not contain, returns given default value.
int GetInteger(string key, int defaultValue)
Parameters
keystringKey of the property bag entry to return
defaultValueintDefault value of the property bag
Returns
- int
Value of the property bag entry as int
GetString(string, string)
Get string typed property bag value. If does not contain, returns given default value.
string GetString(string key, string defaultValue)
Parameters
keystringKey of the property bag entry to return
defaultValuestringDefault value of the property bag
Returns
- string
Value of the property bag entry as string
Update()
Update the property bag
void Update()
UpdateAsync()
Update the property bag
Task UpdateAsync()