Interface IPropertyValues
Public interface to define a PropertyValues object
Assembly: PnP.Core.dll
Syntax
public interface IPropertyValues : IDataModel<IPropertyValues>, IDataModelParent, IDataModelWithContext, ISupportModules<IPropertyValues>, IExpandoDataModel
Methods
Get boolean typed property bag value. If does not contain, returns given default value.
Declaration
bool GetBoolean(string key, bool defaultValue)
Parameters
|
string
key
Key of the property bag entry to return
|
|
bool
defaultValue
Default value of the property bag
|
Returns
|
bool
Value of the property bag entry as boolean
|
Get int typed property bag value. If does not contain, returns given default value.
Declaration
int GetInteger(string key, int defaultValue)
Parameters
|
string
key
Key of the property bag entry to return
|
|
int
defaultValue
Default value of the property bag
|
Returns
|
int
Value of the property bag entry as int
|
Get string typed property bag value. If does not contain, returns given default value.
Declaration
string GetString(string key, string defaultValue)
Parameters
|
string
key
Key of the property bag entry to return
|
|
string
defaultValue
Default value of the property bag
|
Returns
|
string
Value of the property bag entry as string
|
Extension Methods