C# Class Microsoft.Legal.MatterCenter.CreateContentTypes.Program

This class is the entry point for the application
Exibir arquivo Open project: Microsoft/mattercenter

Public Methods

Method Description
CreateContentType ( ClientContext clientContext, string contentTypeName, string parentContentTypeName, string contentTypeGroup ) : void

Method to create Content Types

DeleteContentType ( ClientContext clientContext, string contentTypeName ) : void

Delete Content Types

Main ( string args ) : void

This method is the entry point for the application

Method Details

CreateContentType() public static method

Method to create Content Types
public static CreateContentType ( ClientContext clientContext, string contentTypeName, string parentContentTypeName, string contentTypeGroup ) : void
clientContext ClientContext Client Context
contentTypeName string Name of Content Type
parentContentTypeName string Name of Parent Content Type
contentTypeGroup string Name of group under which Content Type is to be added
return void

DeleteContentType() public static method

Delete Content Types
public static DeleteContentType ( ClientContext clientContext, string contentTypeName ) : void
clientContext ClientContext SharePoint Client Context
contentTypeName string Name of content type to be deleted
return void

Main() public static method

This method is the entry point for the application
public static Main ( string args ) : void
args string input from console
return void