Поделиться через


ModelingAdapter.TrySetDocumentHandler Method (ModelingDocumentHandler)

 

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

public bool TrySetDocumentHandler(
    ModelingDocumentHandler documentHandler
)
public:
bool TrySetDocumentHandler(
    ModelingDocumentHandler^ documentHandler
)
member TrySetDocumentHandler : 
        documentHandler:ModelingDocumentHandler -> bool
Public Function TrySetDocumentHandler (
    documentHandler As ModelingDocumentHandler
) As Boolean

Parameters

Return Value

Type: System.Boolean

Bool to indicate if operation was a success

See Also

ModelingAdapter Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top