This topic has not yet been rated - Rate this topic

IVSSItem.AddWithEncoding Method 

Visual Studio 2005

Adds a file with encoding to a project.

Namespace: Microsoft.VisualStudio.SourceSafe.Interop
Assembly: Microsoft.VisualStudio.SourceSafe.Interop (in microsoft.visualstudio.sourcesafe.interop.dll)

VSSItem AddWithEncoding (
	[InAttribute] string Local,
	[InAttribute] VSSItemEncoding ItemEncoding,
	[OptionalAttribute] [InAttribute] string Comment,
	[OptionalAttribute] [InAttribute] int iFlags
)
VSSItem AddWithEncoding (
	/** @attribute InAttribute() */ String Local, 
	/** @attribute InAttribute() */ VSSItemEncoding ItemEncoding, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String Comment, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ int iFlags
)
function AddWithEncoding (
	Local : String, 
	ItemEncoding : VSSItemEncoding, 
	Comment : String, 
	iFlags : int
) : VSSItem

Parameters

Local

A string representing a fully qualified local path of a file with encoding to be added to the project.

ItemEncoding

VSSItemEncoding representing encoding type.

Comment

Optional. A string containing a comment. The default is an empty string.

iFlags

Optional. The default value is 0.

For more inforamtion, see VSSFlags.

Return Value

A reference of the IVSSItem type to an object that represents a file with encoding added to the project.

[IDL]

HRESULT AddWithEncoding

(

[in] BSTR Local,

[in] VSSItemEncoding ItemEncoding,

[in, defaultvalue("")] BSTR Comment,

[in, defaultvalue(0)] long iFlags,

[out, retval] IVSSItem **ppIItem

);

The AddWithEncoding method applies to project objects only. If you attempt to call the Add method against a file object or add a file that already exists in the project, a run-time error is generated.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.