ShellSettingsManager.GetPropertyScopes Method
Outputs the scopes that contain the given property. If more than one scope contains the property, the corresponding bit flags of those scopes are set.
Namespace: Microsoft.VisualStudio.Shell.Settings
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
声明
Public Overrides Function GetPropertyScopes ( _
collectionPath As String, _
propertyName As String _
) As EnclosingScopes
用法
Dim instance As ShellSettingsManager
Dim collectionPath As String
Dim propertyName As String
Dim returnValue As EnclosingScopes
returnValue = instance.GetPropertyScopes(collectionPath, _
propertyName)
public override EnclosingScopes GetPropertyScopes(
string collectionPath,
string propertyName
)
public:
virtual EnclosingScopes GetPropertyScopes(
String^ collectionPath,
String^ propertyName
) override
abstract GetPropertyScopes :
collectionPath:string *
propertyName:string -> EnclosingScopes
override GetPropertyScopes :
collectionPath:string *
propertyName:string -> EnclosingScopes
public override function GetPropertyScopes(
collectionPath : String,
propertyName : String
) : EnclosingScopes
Parameters
- collectionPath
Type: System.String
Path of the collection of the property.
- propertyName
Type: System.String
Name of the property to be searched.
Return Value
Type: Microsoft.VisualStudio.Settings.EnclosingScopes
.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.