SqlSessionProvider.SetSharedResourceProviderToUse Method (ServerContext)
NOTE: This API is now obsolete.
Sets the Shared Services Provider to use in the object model with the Shared Services Provider for the specified server context.
Namespace: Microsoft.Office.Server.ApplicationRegistry.Infrastructure
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<ObsoleteAttribute("ServerContext is obsolete. Use SetSharedResourceProviderToUse(SPServiceContext).", _
False)> _
Public Sub SetSharedResourceProviderToUse ( _
serverContext As ServerContext _
)
'Usage
Dim instance As SqlSessionProvider
Dim serverContext As ServerContext
instance.SetSharedResourceProviderToUse(serverContext)
[ObsoleteAttribute("ServerContext is obsolete. Use SetSharedResourceProviderToUse(SPServiceContext).",
false)]
public void SetSharedResourceProviderToUse(
ServerContext serverContext
)
Parameters
serverContext
Type: Microsoft.Office.Server.ServerContextA ServerContext object.
See Also
Reference
SetSharedResourceProviderToUse Overload
Microsoft.Office.Server.ApplicationRegistry.Infrastructure Namespace