View Source
Class NewEventArgs<TEntity>
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class NewEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
Type Parameters
Constructors
View Source
NewEventArgs(TEntity, Boolean, String, TEntity)
Declaration
public NewEventArgs(TEntity eventObject, bool canCancel, string alias, TEntity parent)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
System.String |
alias |
|
TEntity |
parent |
|
View Source
NewEventArgs(TEntity, Boolean, String, TEntity, EventMessages)
Declaration
public NewEventArgs(TEntity eventObject, bool canCancel, string alias, TEntity parent, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
System.String |
alias |
|
TEntity |
parent |
|
EventMessages |
eventMessages |
|
View Source
NewEventArgs(TEntity, Boolean, String, Int32)
Declaration
public NewEventArgs(TEntity eventObject, bool canCancel, string alias, int parentId)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
System.String |
alias |
|
System.Int32 |
parentId |
|
View Source
NewEventArgs(TEntity, Boolean, String, Int32, EventMessages)
Declaration
public NewEventArgs(TEntity eventObject, bool canCancel, string alias, int parentId, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
System.String |
alias |
|
System.Int32 |
parentId |
|
EventMessages |
eventMessages |
|
View Source
NewEventArgs(TEntity, String, TEntity)
Declaration
public NewEventArgs(TEntity eventObject, string alias, TEntity parent)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.String |
alias |
|
TEntity |
parent |
|
View Source
NewEventArgs(TEntity, String, TEntity, EventMessages)
Declaration
public NewEventArgs(TEntity eventObject, string alias, TEntity parent, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.String |
alias |
|
TEntity |
parent |
|
EventMessages |
eventMessages |
|
View Source
NewEventArgs(TEntity, String, Int32)
Declaration
public NewEventArgs(TEntity eventObject, string alias, int parentId)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.String |
alias |
|
System.Int32 |
parentId |
|
View Source
NewEventArgs(TEntity, String, Int32, EventMessages)
Declaration
public NewEventArgs(TEntity eventObject, string alias, int parentId, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.String |
alias |
|
System.Int32 |
parentId |
|
EventMessages |
eventMessages |
|
Properties
View Source
Alias
Declaration
public string Alias { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Entity
Declaration
public TEntity Entity { get; }
Property Value
View Source
Parent
Gets or Sets the parent IContent object.
Declaration
public TEntity Parent { get; }
Property Value
View Source
ParentId
Gets or Sets the Id of the parent.
Declaration
public int ParentId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Equals(NewEventArgs<TEntity>)
Declaration
public bool Equals(NewEventArgs<TEntity> other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Operators
View Source
Equality(NewEventArgs<TEntity>, NewEventArgs<TEntity>)
Declaration
public static bool operator ==(NewEventArgs<TEntity> left, NewEventArgs<TEntity> right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
Inequality(NewEventArgs<TEntity>, NewEventArgs<TEntity>)
Declaration
public static bool operator !=(NewEventArgs<TEntity> left, NewEventArgs<TEntity> right)
Parameters
Returns
Type |
Description |
System.Boolean |
|