SPEvaluatorModeProvisioning.TryGetIsSiteProvisioned method
Tries to returns a Web site that has been provisioned.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function TryGetIsSiteProvisioned ( _
template As String, _
relativePath As String, _
port As Nullable(Of Integer), _
<OutAttribute> ByRef provisionedSite As SPSite, _
<OutAttribute> ByRef provisionedWeb As SPWeb, _
<OutAttribute> ByRef provisionedUri As Uri _
) As Boolean
'Usage
Dim instance As SPEvaluatorModeProvisioning
Dim template As String
Dim relativePath As String
Dim port As Nullable(Of Integer)
Dim provisionedSite As SPSite
Dim provisionedWeb As SPWeb
Dim provisionedUri As Uri
Dim returnValue As Boolean
returnValue = instance.TryGetIsSiteProvisioned(template, _
relativePath, port, provisionedSite, _
provisionedWeb, provisionedUri)
public bool TryGetIsSiteProvisioned(
string template,
string relativePath,
Nullable<int> port,
out SPSite provisionedSite,
out SPWeb provisionedWeb,
out Uri provisionedUri
)
Parameters
template
Type: System.StringA string specifying a site definition used to create the Web site.
relativePath
Type: System.StringA string specifying the relative path under the root where the definition is provisioned.
port
Type: System.Nullable<Int32>A 32-bit integer specifying the port number of the provisioned Web site.
provisionedSite
Type: Microsoft.SharePoint.SPSiteOut parameter that receives the provisioned SPSite object if the site is provisioned.
provisionedWeb
Type: Microsoft.SharePoint.SPWebOut parameter that receives the provisioned SPWeb object if the site is provisioned.
provisionedUri
Type: System.UriOut parameter that receives a System.Uri object representing the provisioned URI if the site is provisioned.
Return value
Type: System.Boolean
true if the site is provisioned; otherwise, false.
See also
Reference
SPEvaluatorModeProvisioning class