BizTalkAdaptor Class | MSBuild Extension Pack Help 4.0.12.0 |
Valid TaskActions are:
CheckExists (Required: AdaptorName Optional: MachineName, DatabaseServer, Database Output: Exists, Comment)
Create (Required: AdaptorName, MgmtCLSIDOptional: MachineName, DatabaseServer, Database, Comment, Constraints)
Delete (Required: AdaptorName Optional: MachineName, DatabaseServer, Database)
Remote Execution Support: Yes
Inheritance Hierarchy
MSBuild.ExtensionPackBaseTask
MSBuild.ExtensionPack.BizTalkBizTalkAdaptor
Namespace: MSBuild.ExtensionPack.BizTalk
Assembly: MSBuild.ExtensionPack.BizTalk (in MSBuild.ExtensionPack.BizTalk.dll) Version: 4.0.0.0
The BizTalkAdaptor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BizTalkAdaptor |
Properties
Name | Description | |
---|---|---|
AdaptorName |
Sets the Adaptor Name.
| |
Comment |
Sets the Adaptor comment.
| |
Constraints |
Sets the Constraints
| |
Database |
Sets the Management Database to connect to. Default is BizTalkMgmtDb
| |
DatabaseServer |
Sets the DatabaseServer to connect to. Default is MachineName
| |
Exists |
Gets whether the Adaptor exists
| |
MgmtCLSID |
Sets the MgmtCLSID guid
|
Examples
<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath> <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath> </PropertyGroup> <Import Project="$(TPath)"/> <Target Name="Default"> <!-- Check an Adaptor Exists --> <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL"> <Output TaskParameter="Exists" PropertyName="AdaptorExists" /> </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor> <Message Text="WCF-SQL Exists: $(AdaptorExists)"/> <!-- Delete an Adaptor --> <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Delete" AdaptorName="WCF-SQL"/> <!-- Check an Adaptor Exists --> <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL"> <Output TaskParameter="Exists" PropertyName="AdaptorExists" /> </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor> <Message Text="WCF-SQL Exists: $(AdaptorExists)"/> <!-- Create an Adaptor --> <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Create" AdaptorName="WCF-SQL" MgmtCLSID="{59b35d03-6a06-4734-a249-ef561254ecf7}" Comment="WCF-SQL adapter" Constraints="15369"/> <!-- Check an Adaptor Exists --> <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL"> <Output TaskParameter="Exists" PropertyName="AdaptorExists" /> <Output TaskParameter="Comment" PropertyName="AdaptorComment" /> </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor> <Message Text="WCF-SQL Exists: $(AdaptorExists)"/> <Message Text="WCF-SQL Comment: $(AdaptorComment)"/> </Target> </Project>
See Also