Interface IPropertySettingsRepository
Acts as the link between the Property
Namespace: EPiServer.Core.PropertySettings
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IPropertySettingsRepository
Methods
Delete(PropertySettingsContainer)
Deletes the specified Property
Declaration
void Delete(PropertySettingsContainer propertySetting)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertySetting | The Property |
Delete(Guid)
Deletes the specified Property
Declaration
void Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The System. |
DeleteGlobal(Guid)
Deletes the specified global Property
Declaration
void DeleteGlobal(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of the Property |
GetDefault(Type)
Gets the default Property
Declaration
PropertySettingsWrapper GetDefault(Type propertyType)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyType | Type of the property. |
Returns
Type | Description |
---|---|
Property |
true if successful. |
GetGlobals(Type)
Gets a list of Property
Declaration
IEnumerable<PropertySettingsWrapper> GetGlobals(Type settingsType)
Parameters
Type | Name | Description |
---|---|---|
System. |
settingsType | Type of the property setting. |
Returns
Type | Description |
---|---|
System. |
List of global settings for a type |
Save(PropertySettingsContainer)
Saves the specified Property
Declaration
void Save(PropertySettingsContainer propertySetting)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertySetting | The Property |
SaveGlobal(PropertySettingsWrapper)
Saves the global adding or replacing it in the globals collection.
Declaration
void SaveGlobal(PropertySettingsWrapper global)
Parameters
Type | Name | Description |
---|---|---|
Property |
global | The global settings instance to save. |
SetDefault(Guid)
Sets which Property
Declaration
void SetDefault(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of the propertySetting. |
TryGetContainer(Guid, out PropertySettingsContainer)
Tries to get a Property
Declaration
bool TryGetContainer(Guid id, out PropertySettingsContainer propertySettingsContainer)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of the propertySetting. |
Property |
propertySettingsContainer | The propertySettingsContainer to get. |
Returns
Type | Description |
---|---|
System. |
true if successful. |
TryGetWrapper(Guid, out PropertySettingsWrapper)
Tries to get a Property
Declaration
bool TryGetWrapper(Guid id, out PropertySettingsWrapper propertySettingsWrapper)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of the propertySettingsWrapper. |
Property |
propertySettingsWrapper | The PropertySettingsWrapper to get. |
Returns
Type | Description |
---|---|
System. |
true if successful. |