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
|
System.String
key
Key of the property bag entry to return
|
|
System.Boolean
defaultValue
Default value of the property bag
|
Returns
|
System.Boolean
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
|
System.String
key
Key of the property bag entry to return
|
|
System.Int32
defaultValue
Default value of the property bag
|
Returns
|
System.Int32
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
|
System.String
key
Key of the property bag entry to return
|
|
System.String
defaultValue
Default value of the property bag
|
Returns
|
System.String
Value of the property bag entry as string
|
Extension Methods