Utilities.SetValue Method (IVsUIDataSource, String, Object)
Sets the value of a data source's property.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣告
Public Shared Sub SetValue ( _
ds As IVsUIDataSource, _
prop As String, _
value As Object _
)
'用途
Dim ds As IVsUIDataSource
Dim prop As String
Dim value As Object
Utilities.SetValue(ds, prop, value)
public static void SetValue(
IVsUIDataSource ds,
string prop,
Object value
)
public:
static void SetValue(
IVsUIDataSource^ ds,
String^ prop,
Object^ value
)
static member SetValue :
ds:IVsUIDataSource *
prop:string *
value:Object -> unit
public static function SetValue(
ds : IVsUIDataSource,
prop : String,
value : Object
)
Parameters
- ds
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource
Data source to query
- prop
Type: System.String
Property to be returned
- value
Type: System.Object
New value for the property
Remarks
This function is intended to be used with objects types that are supported by BuiltInPropertyValue. Calling it with different types will result in an exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.