C# 클래스 Localization.Xliff.Samples.SampleCode

This class contains the entry point to the application that demonstrates how to use the XLIFF 2.0 object model.
파일 보기 프로젝트 열기: Microsoft/XLIFF2-Object-Model 1 사용 예제들

공개 메소드들

메소드 설명
BlankDocument ( ) : void

Demonstrates how to create a blank XLIFF document.

DisableValidationOnWrite ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void

Demonstrates how to disable validation when writing an XLIFF document.

Main ( string args ) : void

The main entry point for the application.

ReadDocument ( string file ) : void

Demonstrates how to read an XLIFF document from a file.

StoreCustomExtension ( ) : void

Demonstrates how to store custom attributes and elements on a File element using a custom extension and element types.

StoreGenericExtension ( ) : void

Demonstrates how to store custom attributes and elements on a File element using the built in generic extension support.

StoreGlossary ( ) : void

Demonstrates how to store Glossary data in a Unit element.

StoreMatches ( ) : void

Demonstrates how to store Match data in a Unit element.

StoreMetadata ( ) : void

Demonstrates how to store metadata in a File element.

ViewValidations ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void

Demonstrates how to validate a document on write and display the data where the validation error occurred.

WhiteSpaces ( ) : void
WriteDocument ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void

Demonstrates how to write an XLIFF document to a file.

메소드 상세

BlankDocument() 공개 정적인 메소드

Demonstrates how to create a blank XLIFF document.
public static BlankDocument ( ) : void
리턴 void

DisableValidationOnWrite() 공개 정적인 메소드

Demonstrates how to disable validation when writing an XLIFF document.
public static DisableValidationOnWrite ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void
document Localization.Xliff.OM.Core.XliffDocument The document to write.
file string The path to the document to write.
리턴 void

Main() 공개 정적인 메소드

The main entry point for the application.
public static Main ( string args ) : void
args string Command line arguments passed to the application.
리턴 void

ReadDocument() 공개 정적인 메소드

Demonstrates how to read an XLIFF document from a file.
public static ReadDocument ( string file ) : void
file string The path to the document to read.
리턴 void

StoreCustomExtension() 공개 정적인 메소드

Demonstrates how to store custom attributes and elements on a File element using a custom extension and element types.
public static StoreCustomExtension ( ) : void
리턴 void

StoreGenericExtension() 공개 정적인 메소드

Demonstrates how to store custom attributes and elements on a File element using the built in generic extension support.
public static StoreGenericExtension ( ) : void
리턴 void

StoreGlossary() 공개 정적인 메소드

Demonstrates how to store Glossary data in a Unit element.
public static StoreGlossary ( ) : void
리턴 void

StoreMatches() 공개 정적인 메소드

Demonstrates how to store Match data in a Unit element.
public static StoreMatches ( ) : void
리턴 void

StoreMetadata() 공개 정적인 메소드

Demonstrates how to store metadata in a File element.
public static StoreMetadata ( ) : void
리턴 void

ViewValidations() 공개 정적인 메소드

Demonstrates how to validate a document on write and display the data where the validation error occurred.
public static ViewValidations ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void
document Localization.Xliff.OM.Core.XliffDocument The document to validate.
file string The path to write the document to.
리턴 void

WhiteSpaces() 공개 정적인 메소드

public static WhiteSpaces ( ) : void
리턴 void

WriteDocument() 공개 정적인 메소드

Demonstrates how to write an XLIFF document to a file.
public static WriteDocument ( Localization.Xliff.OM.Core.XliffDocument document, string file ) : void
document Localization.Xliff.OM.Core.XliffDocument The document to write.
file string The path to write the document to.
리턴 void