Share via


(String, Boolean) del método SPSite.OpenWeb

Returns the Web site that is located at the specified server-relative or site-relative URL based on a Boolean value that specifies whether the exact URL must be supplied.

Espacio de nombres:  Microsoft.SharePoint
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
Public Function OpenWeb ( _
    strUrl As String, _
    requireExactUrl As Boolean _
) As SPWeb
'Uso
Dim instance As SPSite
Dim strUrl As String
Dim requireExactUrl As Boolean
Dim returnValue As SPWeb

returnValue = instance.OpenWeb(strUrl, _
    requireExactUrl)
public SPWeb OpenWeb(
    string strUrl,
    bool requireExactUrl
)

Parámetros

  • strUrl
    Tipo: System.String

    A string that contains either the server-relative or site-relative URL of the Web site or of an object within the Web site. A server-relative URL begins with a forward slash ("/"), while a site-relative URL does not begin with a forward slash.

  • requireExactUrl
    Tipo: System.Boolean

    true if an exact URL must be supplied; otherwise false.

Valor devuelto

Tipo: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the Web site.

Vea también

Referencia

clase SPSite

Miembros SPSite

Sobrecarga OpenWeb

Espacio de nombres Microsoft.SharePoint