Class PropertyImportingEventArgs
Argument that is raside when a property is to be imported through ContentChannel.
Inheritance
Inherited Members
Namespace: EPiServer.ContentChannels.Events
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class PropertyImportingEventArgs : ChannelPreActionEvent
Remarks
By default during import of a property if the property is backed by a PropertyData the value is set by ParseToSelf(String). If the value is not backed by a PropertyData, the value is set using reflection. An event handler take care of import by setting value on Content and set Cancel to true then no further action is taken.
Constructors
PropertyImportingEventArgs(String, IContent, String, String)
Initializes a new instance of the PropertyImportingEventArgs class.
Declaration
public PropertyImportingEventArgs(string channelId, IContent content, string propertyName, string propertyValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | channelId | The channel id. |
IContent | content | The content. |
System.String | propertyName | Name of the property. |
System.String | propertyValue | The property value. |
Properties
Content
Gets the content that the property value is to be imported for.
Declaration
public IContent Content { get; }
Property Value
Type | Description |
---|---|
IContent | The content. |
PropertyName
Gets the name of the property that is to be imported
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the property. |
PropertyValue
Gets or sets the value of the property that is to be imported
Declaration
public string PropertyValue { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the property. |