C# Class Microsoft.Legal.MatterCenter.CreateSiteColumns.CreateSiteColumns

Class for creating site columns
Mostrar archivo Open project: Microsoft/mattercenter

Public Methods

Method Description
GetConfigDataFromResource ( string fileName, string keyName ) : string

Method to get data from Resource file

Main ( string args ) : void

Main method

Private Methods

Method Description
AddColumnsToContentType ( Web web, List siteColumns, ContentType finalObj ) : bool

Method to add columns to Content Type

AddSiteColumns ( bool revert, string login, string password ) : void

Function to create Site columns in content type hub

CreateContentType ( ClientContext clientContext, List siteColumns, string contentTypeName, string contentTypegroup ) : bool

Method to create Content Types

CreateSiteColumn ( ClientContext clientContext, List siteColumns, string contentTypeGroup ) : bool

Method to create site column

MapMetadataColumns ( ClientContext clientContext, FieldCollection fieldCol ) : void

Function to map metadata columns with specific term set

RevertSiteColumns ( ClientContext clientContext, List siteColumns, string contentType, string contentTypegroup ) : void

Method to revert creation of site column and Content Type

Method Details

GetConfigDataFromResource() public static method

Method to get data from Resource file
public static GetConfigDataFromResource ( string fileName, string keyName ) : string
fileName string Name of resource file
keyName string Key whose value is to be retrieved
return string

Main() public static method

Main method
public static Main ( string args ) : void
args string Command line arguments
return void