C# Class Glyma.SharePoint.Common.SPListExtensions

Provides extension methods for SharePoint lists.
显示文件 Open project: chris-tomich/Glyma

Public Methods

Method Description
EnsureColumn ( this list, ColumnDetails columnDetail, bool isSiteColumn, bool &isNewColumn ) : SPField

Checks if a column exists in a list and creates it if it doesn't exist.

EnsureColumn ( this list, System.Guid columnId, string columnInternalName, string columnDisplayName, string columnDescription, SPFieldType columnType, string columnTypeAsString, string columnGroup, bool isSiteColumn, bool &isNewColumn ) : SPField

Checks if a column exists in a list and creates it if it doesn't exist.

EnsureColumn ( this list, ReadOnlyColumnDetails columnDetail, bool isSiteColumn, bool &isNewColumn ) : SPField

Checks if a column exists in a list and creates it if it doesn't exist.

UnregisterEventReceivers ( this list, string eventReceiverClassName ) : void

Unregisters a specified event receiver from the list.

Method Details

EnsureColumn() public static method

Checks if a column exists in a list and creates it if it doesn't exist.
public static EnsureColumn ( this list, ColumnDetails columnDetail, bool isSiteColumn, bool &isNewColumn ) : SPField
list this
columnDetail ColumnDetails The details of the site column.
isSiteColumn bool
isNewColumn bool A boolean that is set to true, if a new column is created; otherwise, it is set to false.
return SPField

EnsureColumn() public static method

Checks if a column exists in a list and creates it if it doesn't exist.
public static EnsureColumn ( this list, System.Guid columnId, string columnInternalName, string columnDisplayName, string columnDescription, SPFieldType columnType, string columnTypeAsString, string columnGroup, bool isSiteColumn, bool &isNewColumn ) : SPField
list this The site to check.
columnId System.Guid The GUID of the column to use if it needs to be created.
columnInternalName string The internal name of the column to check.
columnDisplayName string The display name of the column to use if it needs to be created.
columnDescription string The description of the column to use if it needs to be created.
columnType SPFieldType
columnTypeAsString string
columnGroup string The column group to add the site column to if it needs to be created.
isSiteColumn bool
isNewColumn bool A boolean that is set to true, if a new column is created; otherwise, it is set to false.
return SPField

EnsureColumn() public static method

Checks if a column exists in a list and creates it if it doesn't exist.
public static EnsureColumn ( this list, ReadOnlyColumnDetails columnDetail, bool isSiteColumn, bool &isNewColumn ) : SPField
list this
columnDetail ReadOnlyColumnDetails The details of the site column.
isSiteColumn bool
isNewColumn bool A boolean that is set to true, if a new column is created; otherwise, it is set to false.
return SPField

UnregisterEventReceivers() public static method

Unregisters a specified event receiver from the list.
public static UnregisterEventReceivers ( this list, string eventReceiverClassName ) : void
list this The list to use.
eventReceiverClassName string The name of the event receiver to remove.
return void