This documentation is archived and is not being maintained.

CharacterSet Property

Visual Studio .NET 2003

Tells the compiler to use the specified character set.

[Visual Basic .NET]
Public Property CharacterSet() As charSet
[Visual Basic 6]
Property Get CharacterSet() As charSet
Property Let CharacterSet( _
   ByVal NewValue As charSet _
HRESULT __stdcall get_CharacterSet(
   /* [out, retval] */ charSet* retVal
HRESULT __stdcall put_CharacterSet(
   /* [in] */ charSet NewValue
public charSet CharacterSet {get; set;}
[JScript .NET]
public function get CharacterSet() : charSet
public function set CharacterSet(
   NewValue : charSet


Use the charset enumeration to change the value of this property.


The following sample code modifies the VCConfiguration object's CharacterSet property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfg.CharacterSet = charSet.charSetUnicode
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCConfiguration Object | VCStyleSheet Object