SPContentTypeLocation Constructor(String,String,CredentialCache)
See Also 
SourceCode.Workflow.Design.InfoPath.FormTemplate Namespace > SPContentTypeLocation Class > SPContentTypeLocation Constructor : SPContentTypeLocation Constructor(String,String,CredentialCache)



siteUrl
The URL of the site, e.g. e.g. http://myserver:8080/mysite.
contentTypeName
The name of the content type.
credentials
The credential cache containing credentials to connect to the web server.

Glossary Item Box

Specifies the location of an InfoPath form template that has been published to a SharePoint site as a content type, or, the location to which a form template must be published to.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal siteUrl As String, _
   ByVal contentTypeName As String, _
   ByVal credentials As CredentialCache _
)
Visual Basic (Usage)Copy Code
Dim siteUrl As String
Dim contentTypeName As String
Dim credentials As CredentialCache
 
Dim instance As New SPContentTypeLocation(siteUrl, contentTypeName, credentials)
C# 
public SPContentTypeLocation( 
   string siteUrl,
   string contentTypeName,
   CredentialCache credentials
)
C++/CLI 
public:
SPContentTypeLocation( 
   String^ siteUrl,
   String^ contentTypeName,
   CredentialCache^ credentials
)

Parameters

siteUrl
The URL of the site, e.g. e.g. http://myserver:8080/mysite.
contentTypeName
The name of the content type.
credentials
The credential cache containing credentials to connect to the web server.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also