ATMLManagerLibrary.managers.DocumentManager.DetermineContentType C# (CSharp) 메소드

DetermineContentType() 공개 정적인 메소드

public static DetermineContentType ( String fileName ) : String
fileName String
리턴 String
        public static String DetermineContentType( String fileName )
        {
            String contentType = GENERIC_CONTENT_TYPE;
            int idx = fileName.LastIndexOf( "." );
            if (idx != -1)
            {
                String ext = fileName.Substring( idx );
                contentType = GetContentType( ext );
            }
            return contentType;
        }