title
SetStrValue Method (SqlServiceAdvancedProperty Class) | Microsoft Docs
ms.custom
ms.date
03/06/2017
ms.prod
sql-server-2014
ms.reviewer
ms.technology
wmi
ms.topic
reference
api_name
SetStrValue Method (SqlServiceAdvancedProperty Class)
api_location
sqlmgmproviderxpsp2up.mof
topic_type
helpviewer_keywords
ms.assetid
1fededc3-81ba-4b08-83f9-189b96140799
author
CarlRabeler
ms.author
carlrab
manager
craigg
SetStrValue Method (SqlServiceAdvancedProperty Class)
Sets the string value of a property.
object
.SetStrValue(
StrValue
)
object
A SqlServiceAdvancedProperty Class object that represents an advanced property.
Parameter
Description
StrValue
A string value that specifies the value of the advanced property.
Property Value/Return Value
A uint32 value, which is 0 if the service was successfully modified, 1 if the request is not supported, and any other number to indicate an error.
Remarks
The property value type must be string to set the property to a string value.
Starting and Stopping Services