Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.06 KB

File metadata and controls

64 lines (48 loc) · 2.06 KB
title SetVirtualDirectory Method (WMI MSReportServer_ConfigurationSetting) | Microsoft Docs
ms.custom
ms.date 06/13/2017
ms.prod sql-server-2014
ms.reviewer
ms.technology reporting-services-native
ms.topic conceptual
helpviewer_keywords
SetVirtualDirectory method
ms.assetid 1a25cb1d-38d5-401a-970b-87b642a780e4
author maggiesMSFT
ms.author maggies
manager kfile

SetVirtualDirectory Method (WMI MSReportServer_ConfigurationSetting)

Sets the name of the virtual directory for a given application.

Syntax

Public Sub SetVirtualDirectory(ByVal Application As String, _  
    ByVal VirtualDirectory As String, ByVal lcid As Int32, _  
    ByRef [Error] As String, ByRef HRESULT As Int32)  
public void SetVirtualDirectory(string Application, string VirtualDirectory,   
       int Lcid,out string Error, out int HRESULT);  

Parameters

Application
The name of application for which to set the virtual directory.

VirtualDirectory
The name of the virtual directory.

lcid
The locale id for the virtual directory.

Error
[out] The description of the error that occurred.

HRESULT
[out] Value indicating whether the call succeeded or failed.

Return Value

Returns an HRESULT indicating success or failure of the method call. A value of 0 indicates that the method call was successful; an error code indicates the call was not successful.

Remarks

An application can have only one virtual directory name for all URL reservations.

VirtualDirectory must conform to naming conventions for virtual directories. VirtualDirectory must not be empty string or blank.

Updates the value of the \Configuration\URLReservations\Application\VirtualDirectory element. Succeeds even if no URL reservations have been created yet.

Requirements

Namespace: [!INCLUDEssRSWMInmspcA]

See Also

MSReportServer_ConfigurationSetting Members