- ActivationContextAttribute
- AllowNullAttribute
- DisallowNullAttribute
- Dock
- DoesNotReturnAttribute
- DoesNotReturnIfAttribute
- ExtensionContractAttribute
- ExtensionPartAttribute
- HostingOptionsAttribute
- MaybeNullAttribute
- MaybeNullWhenAttribute
- MemberNotNullAttribute
- MemberNotNullWhenAttribute
- NotNullAttribute
- NotNullIfNotNullAttribute
- NotNullWhenAttribute
- Resources
- ServiceFactoryRegistrationAttribute
- ToolWindowAttribute
- ToolWindowPlacement
- ToolWindowVisibleWhenAttribute
Microsoft.VisualStudio.Extensibility
An attribute base class that describes metadata based on activation context.
Initializes a new instance of the ActivationContextAttribute class.
Name | Type | Description |
---|---|---|
expression | System.String | Boolean expression string. |
termNames | System.String[] | Array of terms used in the expression. |
termValues | System.String[] | Values of each term in the same order as term names array. |
Gets the activation expression.
Gets the names of the terms used in the expression.
Gets the term values in the same order as term names.
System.Diagnostics.CodeAnalysis
Specifies that null
is allowed as an input even if the
corresponding type disallows it.
Initializes a new instance of the AllowNullAttribute class.
This constructor has no parameters.
System.Diagnostics.CodeAnalysis
Specifies that null
is disallowed as an input even if the
corresponding type allows it.
Initializes a new instance of the DisallowNullAttribute class.
This constructor has no parameters.
Microsoft.VisualStudio.Extensibility.ToolWindows
Dock direction that can be used to control how a tool window is docked when it's first shown.
Docks the tool window below its placement target.
Docks the tool window to the left of its placement target.
Docks the tool window alongside its placement target.
Docks the tool window to the right of its placement target.
Docks the tool window above its placement target.
System.Diagnostics.CodeAnalysis
Specifies that a method that will never return under any circumstance.
Initializes a new instance of the DoesNotReturnAttribute class.
This constructor has no parameters.
System.Diagnostics.CodeAnalysis
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes a new instance of the DoesNotReturnIfAttribute class with the specified parameter value.
Name | Type | Description |
---|---|---|
parameterValue | System.Boolean | The condition parameter value. |
Code after the method is considered unreachable by diagnostics if the argument
to the associated parameter matches this value. |
Gets the condition parameter value. Code after the method is considered unreachable by diagnostics if the argument to the associated parameter matches this value.
Microsoft.VisualStudio.Extensibility
Contains additional information about an extension part contract, specifically around wrapping type.
Initializes a new instance of the ExtensionContractAttribute class.
Name | Type | Description |
---|---|---|
rpcContractType | System.Type | Type of the rpc contract interface. |
wrapperObjectType | System.Type | Type of the wrapper object. |
Gets the RPC contract type this interface is intended for.
Gets the wrapper object type.
Microsoft.VisualStudio.Extensibility
An attribute base class that indicates the type of contract provided by the ExtensionPart object.
Initializes a new instance of the ExtensionPartAttribute class.
Name | Type | Description |
---|---|---|
interfaceType | System.Type | Type of the interface exposed by this extension part.. |
Gets the contract interface type.
Microsoft.VisualStudio.Extensibility
An attribute base class that indicates the type of contract provided by the ExtensionPart object.
Initializes a new instance of the HostingOptionsAttribute class.
Name | Type | Description |
---|---|---|
requiresInProcessHosting | System.Boolean | If true, extension is required to be hosted in process. |
Gets a value indicating whether the extension requires to be hosted in process.
System.Diagnostics.CodeAnalysis
Specifies that an output may be null
even if the
corresponding type disallows it.
Initializes a new instance of the MaybeNullAttribute class.
This constructor has no parameters.
System.Diagnostics.CodeAnalysis
Specifies that when a method returns ReturnValue,
the parameter may be null
even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
Name | Type | Description |
---|---|---|
returnValue | System.Boolean | The return value condition. |
If the method returns this value, the associated parameter may be `null`. |
Gets the return value condition.
If the method returns this value, the associated parameter may be null
.
System.Diagnostics.CodeAnalysis
Specifies that the method or property will ensure that the listed field and property members have
not-null
values.
Initializes the attribute with a field or property member.
Name | Type | Description |
---|---|---|
member | System.String | The field or property member that is promised to be not-null. |
Initializes the attribute with the list of field and property members.
Name | Type | Description |
---|---|---|
members | System.String[] | The list of field and property members that are promised to be not-null. |
Gets field or property member names.
System.Diagnostics.CodeAnalysis
Specifies that the method or property will ensure that the listed field and property members have
non-null
values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
Name | Type | Description |
---|---|---|
returnValue | System.Boolean | The return value condition. If the method returns this value, |
the associated parameter will not be `null`. |
| member | System.String | The field or property member that is promised to be not-null
. |
Initializes the attribute with the specified return value condition and list of field and property members.
Name | Type | Description |
---|---|---|
returnValue | System.Boolean | The return value condition. If the method returns this value, |
the associated parameter will not be `null`. |
| members | System.String[] | The list of field and property members that are promised to be not-null. |
Gets field or property member names.
Gets the return value condition.
System.Diagnostics.CodeAnalysis
Specifies that an output is not null
even if the
corresponding type allows it.
Initializes a new instance of the NotNullAttribute class.
This constructor has no parameters.
System.Diagnostics.CodeAnalysis
Specifies that the output will be non-null
if the
named parameter is non-null
.
Initializes the attribute with the associated parameter name.
Name | Type | Description |
---|---|---|
parameterName | System.String | The associated parameter name. |
The output will be non-`null` if the argument to the
parameter specified is non-`null`. |
Gets the associated parameter name.
The output will be non-null
if the argument to the
parameter specified is non-null
.
System.Diagnostics.CodeAnalysis
Specifies that when a method returns ReturnValue,
the parameter will not be null
even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
Name | Type | Description |
---|---|---|
returnValue | System.Boolean | The return value condition. |
If the method returns this value, the associated parameter will not be `null`. |
Gets the return value condition.
If the method returns this value, the associated parameter will not be null
.
Microsoft.VisualStudio.Extensibility.Contracts
A strongly-typed resource class, for looking up localized strings, etc.
Looks up a localized string similar to Command ID is already registered..
Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class.
Looks up a localized string similar to Invalid version identifier..
Returns the cached ResourceManager instance used by this class.
Looks up a localized string similar to Unsupported document moniker..
Microsoft.VisualStudio.Extensibility
Describes a mapping from service moniker to internal service factory type and extension part instance type.
Initializes a new instance of the ServiceFactoryRegistrationAttribute class.
Name | Type | Description |
---|---|---|
serviceName | System.String | Name of the service. |
serviceVersion | System.String | Version of the service. |
factoryType | System.Type | Factory class type. |
instanceType | System.Type | Optional service object instance class type, if specified the type info will be passed to the factory. |
interfaceType | System.Type | Optional interface type, if specified the type info will be passed to factory to determine the wrapper type. |
Gets the service factory type.
Gets the service object instance type.
Gets the target interface type for this service moniker, should be specified if instance type is implementing multiple interfaces.
Gets the service moniker.
Microsoft.VisualStudio.Extensibility.ToolWindows
An attribute used on ToolWindow classes to register a tool window and define its default behaviors.
Initializes a new instance of the ToolWindowAttribute class.
Name | Type | Description |
---|---|---|
placement | Microsoft.VisualStudio.Extensibility.ToolWindows.ToolWindowPlacement | The placement location for the tool window. Valid values come from ToolWindowPlacement. |
dockDirection | Microsoft.VisualStudio.Extensibility.ToolWindows.Dock | The direction relative to the placement where the tool window should be docked. |
allowAutoCreation | System.Boolean | Whether or not the tool window can be created automatically. |
Initializes a new instance of the ToolWindowAttribute class.
Name | Type | Description |
---|---|---|
placement | System.String | The placement location for the tool window. Valid values come from guids of other tool windows. |
dockDirection | Microsoft.VisualStudio.Extensibility.ToolWindows.Dock | The direction relative to the placement where the tool window should be docked. |
allowAutoCreation | System.Boolean | Whether or not the tool window can be created automatically. |
Gets a value indicating whether the tool window can be created automatically.
When true, the tool window will be created if it should be visible in the current window layout or when any relevant visibility contexts activate. When false the tool window will not be created as part of loading any window layout or due to visibility contexts, and the only way to trigger the creation is to manually show it.
Gets the dock direction where the tool window should be placed relative to the Placement value.
If the Placement has the value Floating this value is ignored. If the Placement has the value DocumentWell this value will dock the tool window to the corresponding side of the main window's document well. If the Placement is any other value the tool window will be docked relative to the Placement based on the value of the "Insert new tabs to the right" setting with the exception of Left which will always dock to the left of the Placement.
Gets the default placement location for the tool window. This can be a well-known string from ToolWindowPlacement, or the guid string of another tool window.
If the value is Floating the tool window will be created in its own floating window. If the value is DocumentWell the tool window will be docked in relation to the main window's document well. Any other value will attempt to find the referenced location and dock the tool window relative to that location, but if that location cannot be found, the tool window will fallback to opening in a floating window.
Microsoft.VisualStudio.Extensibility.ToolWindows
Known default tool window placements.
Places the tool window in the active document well by default.
Places the tool window in a standalone floating window by default.
Microsoft.VisualStudio.Extensibility.ToolWindows
An attribute used on ToolWindow classes to register a visibility context for showing a tool window.
Initializes a new instance of the ToolWindowVisibleWhenAttribute class.
Name | Type | Description |
---|---|---|
expression | System.String | A boolean expression string. |
termNames | System.String[] | The names of the terms used in the expression. |
termValues | System.String[] | The values of each term in the same order as term names array. |