ModelingAdapter.TrySetDocumentHandler Method
If the ModelingDocumentHandler is not already set (by the constructor for e.g.), then sets it to the value passed as a parameter. Otherwise, returns false.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)
Syntax
'Declaration
Public Function TrySetDocumentHandler ( _
documentHandler As ModelingDocumentHandler _
) As Boolean
public bool TrySetDocumentHandler(
ModelingDocumentHandler documentHandler
)
public:
bool TrySetDocumentHandler(
ModelingDocumentHandler^ documentHandler
)
member TrySetDocumentHandler :
documentHandler:ModelingDocumentHandler -> bool
public function TrySetDocumentHandler(
documentHandler : ModelingDocumentHandler
) : boolean
Parameters
documentHandler
Type: Microsoft.VisualStudio.Modeling.Integration.ModelingDocumentHandlerModelingDocumentHandler to configure this ModelingAdapter
Return Value
Type: System.Boolean
Bool to indicate if operation was a success
.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.