????? ??????? PKMCDO ?????? ????? ??????? ??? ???? ?? "Visual C" #

?????? ????????? ?????? ?????????
???? ???????: 312541 - ??? ???????? ???? ????? ????? ??? ???????.
????? ADO ? MD ADO ?? ??? ???? ???? ???????? ?? ???? Microsoft .NET Framework. ?? ???? ??? ??? ???? ?????? ?????? ???? ?? ????????? ???????? ??? ???? ?? ?? ??????? ??? ?????? ??????? ????????. ??? ??????? ???????? ???? ??? ???????? ?? ??? ??????? ??? ?????? ???? ????? ??????? ??? ADO.NET. ??? ??????? ??? ???????? ??? ??? ????? ?????? ????? ?????? ?? ??? ???? ?????? ?????. ?? ?? ???????? ???? ???? ?? ???? ??????? ADO ?? MD ADO ???? ??????? ??? ??????. ????? ?? ?????????? ???? ??????? ??????? ?? "????? ??????? ?? Microsoft:
840667 ???? ????? ??? ?????? ??? ??????? ADO ? MD ADO ?? ????? .NET Framework
????? ???? | ?? ????

??????

???? ??? ??????? ????? ??????? Microsoft ????? ????? ????? ??????? ?????? ?????? (PKMCDO) ?????? ??? ???? ????? ??? Microsoft ?????? ????? ??? ???? ?? ????? ????????? ??? ????? ??? Microsoft SharePoint Portal Server ???????? Microsoft Visual C#.

??????? ????

???????? PKMCDO ?????? ????? ??? ???? ?? ????? ????????? ??? ????? ??? SharePoint Portal Server ???? ??????? ???????:
  1. ??? ????? Microsoft Visual Studio .NET ?? Microsoft Visual Studio 2005.
  2. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????.
  3. ??? ????? Project ??? Visual C# ????????.

    ?????? ?? Visual Studio 2005 ? ???? ??? Visual C# ??? ????? Project.
  4. ??? ????? ? ??? ????? ???? ?????? ?? ???? ??? ?????.

    ?????????? ??? ????? Class1.cs ?? Visual Studio .NET. ??? ????? Program.cs ?? Visual Studio 2005.
  5. ????? ???? ??? PKMCDO Microsoft ?????? ???? ????? ??? Microsoft. ?????? ????? ???? ??????? ???????:
    1. ?? ??????? ??????? ???? ??? ????? ????.
    2. ???? ??? ????? ??????? COM ????? ???? PKMCDO Microsoft ?????? ???? ????? ??? Microsoft ?? ?? ???? ??? ?????.

      ?????? ?? Visual Studio 2005 ? ?? ??? ???? ??? ???? ??? ?????.
    3. ?? ???? ?????? ????? ????? ? ???? ??? "?????".
    4. ??? ??? ??????? ?????? wrappers ???????? ???? ?????? ???? ??? "???".
  6. ??? ?????? 5 ?????? ???? ??? ????? 2.6 ?????? ?????? Microsoft ActiveX.
  7. ????? ????????? ???????? ??????? ?? ??? ?????? ??? ??? ????? ???? "TODO: ????? ??? ??? ????? ??????? ???:"
    // TODO: Add code to start application here.
    
    PKMCDO.KnowledgeDocument oDoc = new PKMCDO.KnowledgeDocument();
    PKMCDO.KnowledgeFolder oFolder = new PKMCDO.KnowledgeFolder();
    ADODB._Stream oWrkStream;
      
    //TODO: Change the following variables to reflect your SharePoint Portal Server environment.
    String sHref="http://<ServerName>/<WorkspaceName>/documents/testdoc.txt"; 
    String sFilePath = "c:\\testdoc.txt" ;
    String sAuthor = "AuthorName";
    String sTitle = "TestDoc.txt";
    String sDesc = "Test Description";
    
    Object vEmpty = Missing.Value;
    
    oWrkStream = (ADODB._Stream )oDoc.OpenStream(
            vEmpty,
            PKMCDO.EnumKnowledge_StreamOpenSourceType.pkmOpenStreamUnspecified,
            "",
            PKMCDO.ConnectModeEnum.adModeReadWrite,
            "",
            "");
        
    oWrkStream.Type = ADODB.StreamTypeEnum.adTypeBinary;
    oWrkStream.SetEOS();
    oWrkStream.LoadFromFile(sFilePath);
    oWrkStream.Flush();
    oDoc.Author = sAuthor;
    oDoc.Title = sTitle;
    oDoc.Description = sDesc ;
    oDoc.DataSource.SaveTo (
            sHref,
            null,
            PKMCDO.ConnectModeEnum.adModeReadWrite,
            PKMCDO.RecordCreateOptionsEnum.adCreateNonCollection,
            PKMCDO.RecordOpenOptionsEnum.adOpenSource,
            "" , 
            "");
                              
    oDoc = null;
    oWrkStream= null;
  8. ????? ??????? ??????? ??? ????? 1 ?? Class1.cs:
    using System.Reflection;
  9. ????? ?? TODO ?? ????????? ???????? ?? ?? ?????? ????????? ???????? ?????? ?????? ??.
  10. ???? F5 ?????? ? ?????? ????????.
  11. ????? ???? SharePoint Portal Server ????? ?? ?? Microsoft Internet Explorer ?? ???? ?? ???? ???????.

?????

????? ?? ?????????? ???? ?? SharePoint Portal Server ????? ?????? ??????? (SDK).

???????

???? ???????: 312541 - ????? ??? ??????: 19/?? ??????/1428 - ??????: 3.4
????? ???
  • Microsoft Visual C# 2005 Express Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
  • Microsoft SharePoint Portal Server 2001
????? ??????: 
kbmt kbhowto kbmsg KB312541 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????312541

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com