GetContentType() static private method

static private GetContentType ( string ContentTypeParentName ) : object
ContentTypeParentName string
return object
 private StepResult Check(bool probe)
 {
     if (ContentTypeParentName != null)
     {
         if (ContentManager.GetContentType(ContentTypeParentName) == null)
         {
             if (!BatchStep.ContentTypeNamesInPackage.Contains(ContentTypeParentName))
             {
                 Logger.LogMessage("Cannot install ContentType: {0}. ParentType does not exist: {1}", ContentTypeName, ContentTypeParentName);
                 return(new StepResult {
                     Kind = StepResultKind.Error
                 });
             }
         }
     }
     return(null);
 }
 private bool CheckExistence()
 {
     return(ContentManager.GetContentType(ContentTypeName) != null);
 }