Click or drag to resize

clsImportKnowledgeBaseEntryLanguage Class

This class allows to import an additional language to an existing KB Item. User clsImportKnowledgeBaseEntry to create a new KB entry with the main language Import for table MPKBArtikelSprache: Support Module: Knowledge Base Languages
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportKnowledgeBaseEntryLanguage

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsImportKnowledgeBaseEntryLanguage : clsImportBase

The clsImportKnowledgeBaseEntryLanguage type exposes the following members.

Constructors
  NameDescription
Public methodclsImportKnowledgeBaseEntryLanguage
Initializes a new instance of the clsImportKnowledgeBaseEntryLanguage class
Top
Properties
  NameDescription
Public propertyContent
Content: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Public propertyDescription
Description
Public propertyKnowledgeBaseID
KnowledgeBaseID Mandatory field to link the additional language to the existing KB Entry.
Public propertyKnowledgeBaseLanguageID
KnowledgeBaseLanguageID: Internal number. Can be 0 for import. Will be created automatically
Public propertyLanguageCode
LanguageCode internal languate id linked to table MPSysKundenSprachen
Public propertySource
Information Source: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Public propertySummary
Summary: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Top
Methods
Remarks
Examples
Create an additional language for an existing knowledge base entry
public bool CreateSecondKnowledgeBaseEntryLanguage(int KnowledgeBaseEntryID) {
    clsImportKnowledgeBaseEntryLanguage oKBEntryLanguage = new clsImportKnowledgeBaseEntryLanguage();

    oKBEntryLanguage.Description = "MS Office Installation Tipp DE";
    oKBEntryLanguage.KnowledgeBaseID = KnowledgeBaseEntryID; // existing KB Entry
    oKBEntryLanguage.LanguageCode = 100001; // second language
    oKBEntryLanguage.Content = "Details in German";
    oKBEntryLanguage.Source = "lorem ipsum";
    oKBEntryLanguage.Summary = "lorem ipsum";

    if (!oMPInterface.bImportKnowledgeBaseEntryLanguage(oKBEntryLanguage, clsImportBase.eImportMode.ValidateAndImport)) {
        // oTimeKeepingLine.oErrors contains all Errors
        throw new Exception(oMPInterface.oErrors.PrintErrors());
    } else {
        return true;
    }
}
See Also