1.引用安装目录下的程序集Microsoft.BizTalk.Edi.PartnerAgreementManager.dll
2.Microsoft.BizTalk.Edi.PartnerAgreementManager.Partner.GetPartyIdForPartyName(partyName);