Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Add ( _
name As String, _
value As String, _
type As UserContextType _
)
'使用
Dim instance As UserContext
Dim name As String
Dim value As String
Dim type As UserContextType
instance.Add(name, value, type)
public void Add(
string name,
string value,
UserContextType type
)
public:
void Add(
String^ name,
String^ value,
UserContextType type
)
public function Add(
name : String,
value : String,
type : UserContextType
)
Parameters
- name
Type: System.String
- value
Type: System.String
Permissions
- 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.