Establishes the mapping modes for both primary and secondary buffers.
Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function SetBufferMappingModes ( _
    bcmmPrimary As UInteger, _
    bcmmSecondary As UInteger _
) As Integer
用法
Dim instance As IVsTextBufferCoordinator
Dim bcmmPrimary As UInteger
Dim bcmmSecondary As UInteger
Dim returnValue As Integer
returnValue = instance.SetBufferMappingModes(bcmmPrimary, _
    bcmmSecondary)
int SetBufferMappingModes(
    uint bcmmPrimary,
    uint bcmmSecondary
)
int SetBufferMappingModes(
    [InAttribute] unsigned int bcmmPrimary, 
    [InAttribute] unsigned int bcmmSecondary
)
abstract SetBufferMappingModes : 
        bcmmPrimary:uint32 * 
        bcmmSecondary:uint32 -> int 
function SetBufferMappingModes(
    bcmmPrimary : uint, 
    bcmmSecondary : uint
) : int
Parameters
- bcmmPrimary
 Type: System.UInt32
 [in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the primary buffer.
- bcmmSecondary
 Type: System.UInt32
 [in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the secondary buffer.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT SetBufferMappingModes(
   [in] DWORD bcmmPrimary,
   [in] DWORD bcmmSecondary
);
The mapping modes set by this method control the extent of the character span that is mapped from a particular buffer. This extent is discussed in detail in the _BufferCoordinatorMappingMode enumeration.
.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.
See Also
Reference
IVsTextBufferCoordinator Interface